Clean up all modules in the UE4 project, not just the main one

This commit is contained in:
Steve Streeting 2020-06-12 11:39:59 +01:00
parent c38f14b2d7
commit 4f5fde800c

View File

@ -91,10 +91,15 @@ try {
} }
Remove-Variable ue4proc Remove-Variable ue4proc
# Because we know editor is closed, Hot Reload DLLs are OK to clean up # Find all the modules in the project
Cleanup-DLLs ".\Binaries\Win64" $uprojname $dryrun $ujson = Get-Content $uprojfile | ConvertFrom-Json
foreach ($module in $ujson.Modules) {
# Because we know editor is closed, Hot Reload DLLs are OK to clean up
Cleanup-DLLs ".\Binaries\Win64" $module.Name $dryrun
}
# Also clean up plugins, since they will be rebuilt # Also clean up SOURCE plugins, since they will be rebuilt
# This is not the same list as $ujson.Plugins, those are the binary ones
$plugins = Get-ChildItem -Path .\Plugins -Filter *.uplugin -Recurse -ErrorAction SilentlyContinue -Force $plugins = Get-ChildItem -Path .\Plugins -Filter *.uplugin -Recurse -ErrorAction SilentlyContinue -Force
foreach ($pluginfile in $plugins) { foreach ($pluginfile in $plugins) {
$pluginname = [System.IO.Path]::GetFileNameWithoutExtension($pluginfile.FullName) $pluginname = [System.IO.Path]::GetFileNameWithoutExtension($pluginfile.FullName)