mirror of
https://github.com/sinbad/UEScripts.git
synced 2025-02-23 13:15:23 +00:00
Clean up all modules in the UE4 project, not just the main one
This commit is contained in:
parent
c38f14b2d7
commit
4f5fde800c
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user