Textractor_test/deploy.ps1
2019-01-11 16:20:57 -05:00

26 lines
754 B
PowerShell

Set-Location $PSScriptRoot;
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"
) | ForEach-Object { "builds/RelWithDebInfo_x$($arch)/$($_)" };
mkdir -Force -Verbose $folder;
Remove-Item -Force -Recurse -Verbose "$($folder)/*";
Copy-Item -Force -Recurse -Verbose -Destination $folder -Path $targets;
Copy-Item -Force -Recurse -Verbose -Destination $folder -Path "release/*";
Compress-Archive -Force -Verbose -DestinationPath $folder -Path $folder;
}