diff options
-rw-r--r-- | Tools/clean_ouput_dir.ps1 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Tools/clean_ouput_dir.ps1 b/Tools/clean_ouput_dir.ps1 index 9c652e27..1a8220f5 100644 --- a/Tools/clean_ouput_dir.ps1 +++ b/Tools/clean_ouput_dir.ps1 @@ -9,18 +9,20 @@ param ( Write-Output "===== Beginning $($PSCmdlet.MyInvocation.MyCommand) =====" # Cleanup -Get-ChildItem -Path "$($TargetDir)\lang" | Remove-Item -Get-ChildItem -Path "$($TargetDir)\dll" | Remove-Item +Get-ChildItem -Path "$($TargetDir)\lang" | Remove-Item -Force +Get-ChildItem -Path "$($TargetDir)\dll" | Remove-Item -Force +Remove-Item "$($TargetDir)\lang" -Force +Remove-Item "$($TargetDir)\dll" -Force # Create directories New-Item -Path "$($TargetDir)" -Name "lang" -ItemType "directory" New-Item -Path "$($TargetDir)" -Name "dll" -ItemType "directory" # Remove unnecessary files from build -Get-ChildItem -Path "$($TargetDir)\*.json" | Remove-Item +#Get-ChildItem -Path "$($TargetDir)\*.json" | Remove-Item # Move DLLs -Get-ChildItem -Path "$($TargetDir)\*.dll" | Remove-Item +Get-ChildItem -Path "$($TargetDir)\*.dll" | Move-Item -Destination "$($TargetDir)\dll" # Move language resource DLLs $languages = @('de','it','cs-CZ','el','es','es-AR','fi-FI','fr','hu','ja-JP','ko-KR','lt','nb-NO','nl','pl','pt','pt-BR','ru','tr-TR','uk','zh-CN','zh-TW') |