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