DRY build script
This commit is contained in:
parent
0afdafb3d1
commit
24d9244ad4
58
deploy.ps1
58
deploy.ps1
@ -1,35 +1,25 @@
|
||||
cd Builds/RelWithDebInfo_x86;
|
||||
Compress-Archive -Force -DestinationPath Textractor -Path @(
|
||||
"Textractor.exe",
|
||||
"styles",
|
||||
"platforms",
|
||||
"Qt5Core.dll",
|
||||
"Qt5Gui.dll",
|
||||
"Qt5Widgets.dll",
|
||||
"vnrhook.dll",
|
||||
"Bing Translate.dll",
|
||||
"Copy to Clipboard.dll",
|
||||
"Extra Newlines.dll",
|
||||
"Google Translate.dll",
|
||||
"Regex Filter.dll",
|
||||
"Remove Repetition.dll",
|
||||
"Extensions.txt"
|
||||
)
|
||||
Set-Location "$($PSScriptRoot)/Builds";
|
||||
|
||||
cd ../RelWithDebInfo_x64;
|
||||
Compress-Archive -Force -DestinationPath Textractor -Path @(
|
||||
"Textractor.exe",
|
||||
"styles",
|
||||
"platforms",
|
||||
"Qt5Core.dll",
|
||||
"Qt5Gui.dll",
|
||||
"Qt5Widgets.dll",
|
||||
"vnrhook.dll",
|
||||
"Bing Translate.dll",
|
||||
"Copy to Clipboard.dll",
|
||||
"Extra Newlines.dll",
|
||||
"Google Translate.dll",
|
||||
"Regex Filter.dll",
|
||||
"Remove Repetition.dll",
|
||||
"Extensions.txt"
|
||||
)
|
||||
foreach ($arch in @("86", "64")) {
|
||||
$folder = "Textractor$($arch)";
|
||||
$targets = @(
|
||||
"Textractor.exe",
|
||||
"Qt5Core.dll",
|
||||
"Qt5Gui.dll",
|
||||
"Qt5Widgets.dll",
|
||||
"vnrhook.dll",
|
||||
"Bing Translate.dll",
|
||||
"Copy to Clipboard.dll",
|
||||
"Extra Newlines.dll",
|
||||
"Google Translate.dll",
|
||||
"Regex Filter.dll",
|
||||
"Remove Repetition.dll",
|
||||
"Extensions.txt",
|
||||
"platforms",
|
||||
"styles"
|
||||
) | ForEach-Object { "RelWithDebInfo_x$($arch)/$($_)" };
|
||||
mkdir -Force -Verbose $folder;
|
||||
Remove-Item -Force -Recurse -Verbose "$($folder)/*";
|
||||
Copy-Item -Force -Recurse -Verbose -Destination $folder -Path $targets;
|
||||
Compress-Archive -Force -Verbose -DestinationPath $folder -Path $folder;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user