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",
|
2019-02-01 01:26:11 +08:00
|
|
|
"TextractorCLI.exe",
|
|
|
|
"vc_redist.x$($arch).exe"
|
2019-01-26 11:49:50 +08:00
|
|
|
"vnrhook.dll",
|
2019-01-10 14:59:27 +08:00
|
|
|
"Qt5Core.dll",
|
|
|
|
"Qt5Gui.dll",
|
|
|
|
"Qt5Widgets.dll",
|
2019-01-26 11:49:50 +08:00
|
|
|
"LoaderDll.dll",
|
|
|
|
"LocaleEmulator.dll",
|
2019-01-10 14:59:27 +08:00
|
|
|
"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",
|
2019-01-24 05:11:14 +08:00
|
|
|
"Replacer.dll",
|
2019-01-23 03:35:34 +08:00
|
|
|
"Thread Linker.dll",
|
2019-01-10 14:59:27 +08:00
|
|
|
"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;
|
|
|
|
Compress-Archive -Force -Verbose -DestinationPath $folder -Path $folder;
|
|
|
|
}
|