Textractor_test/deploy.ps1

27 lines
776 B
PowerShell
Raw Normal View History

2019-01-12 05:20:57 +08:00
Set-Location $PSScriptRoot;
2019-01-10 14:59:27 +08:00
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",
2019-01-20 22:47:58 +08:00
"Extra Window.dll",
2019-01-10 14:59:27 +08:00
"Google Translate.dll",
"Regex Filter.dll",
"Remove Repetition.dll",
"platforms",
"styles"
2019-01-12 05:20:57 +08:00
) | ForEach-Object { "builds/RelWithDebInfo_x$($arch)/$($_)" };
2019-01-10 14:59:27 +08:00
mkdir -Force -Verbose $folder;
Remove-Item -Force -Recurse -Verbose "$($folder)/*";
Copy-Item -Force -Recurse -Verbose -Destination $folder -Path $targets;
2019-01-12 05:20:57 +08:00
Copy-Item -Force -Recurse -Verbose -Destination $folder -Path "release/*";
2019-01-10 14:59:27 +08:00
Compress-Archive -Force -Verbose -DestinationPath $folder -Path $folder;
}