diff options
author | Faryan Rezagholi <faryan.rezagholi@siedle.de> | 2021-12-16 18:44:56 +0300 |
---|---|---|
committer | Faryan Rezagholi <faryan.rezagholi@siedle.de> | 2021-12-16 18:44:56 +0300 |
commit | 2b9effdf714afc9a8f25bffdaa8deefa1097eeae (patch) | |
tree | 1eddc4f5fbc51a528567410a602eeedb07cce4e7 | |
parent | 390ec3e076cf1343ae8ec7ebcc358cf1fb5fb13e (diff) |
updated scriptbuild_folder
-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') |