Textractor/deploy.ps1

32 lines
816 B
PowerShell
Raw Normal View History

2019-02-02 16:54:29 -05:00
param([string]$arch = "86", [string]$folder = "Textractor$($arch)")
2019-01-11 16:20:57 -05:00
Set-Location $PSScriptRoot;
2019-02-02 16:54:29 -05:00
$targets = @(
"Textractor.exe",
"TextractorCLI.exe",
"vnrhook.dll",
"Qt5Core.dll",
"Qt5Gui.dll",
"Qt5Widgets.dll",
"LoaderDll.dll",
"LocaleEmulator.dll",
2019-02-12 19:54:15 -05:00
"lua53.dll",
2019-02-02 16:54:29 -05:00
"Bing Translate.dll",
"Copy to Clipboard.dll",
"Extra Newlines.dll",
"Extra Window.dll",
"Google Translate.dll",
2019-02-12 19:54:15 -05:00
"Lua.dll",
2019-02-02 16:54:29 -05:00
"Regex Filter.dll",
"Remove Repetition.dll",
"Replacer.dll",
"Thread Linker.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;
Compress-Archive -Force -Verbose -DestinationPath "$($folder).zip" -Path $folder;