Textractor/deploy.ps1

31 lines
860 B
PowerShell
Raw Normal View History

2019-01-11 16:20:57 -05:00
Set-Location $PSScriptRoot;
2019-01-10 01:59:27 -05:00
foreach ($arch in @("86", "64")) {
$folder = "Textractor$($arch)";
$targets = @(
"Textractor.exe",
"vnrhook.dll",
2019-01-10 01:59:27 -05:00
"Qt5Core.dll",
"Qt5Gui.dll",
"Qt5Widgets.dll",
"LoaderDll.dll",
"LocaleEmulator.dll",
2019-01-10 01:59:27 -05:00
"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-23 16:11:14 -05:00
"Replacer.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;
}