2019-01-12 05:20:57 +08:00
|
|
|
Set-Location $PSScriptRoot;
|
2018-10-28 14:27:24 +08:00
|
|
|
|
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",
|
|
|
|
"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;
|
|
|
|
}
|