streamline deployment
This commit is contained in:
parent
25d36ff301
commit
c49c57dded
22
deploy.ps1
22
deploy.ps1
@ -17,8 +17,8 @@ foreach ($language in @{
|
|||||||
}.GetEnumerator())
|
}.GetEnumerator())
|
||||||
{
|
{
|
||||||
$folder = "Textractor-$($language.Value)-$version";
|
$folder = "Textractor-$($language.Value)-$version";
|
||||||
|
rm -Force -Recurse -Verbose $folder;
|
||||||
mkdir -Force -Verbose $folder;
|
mkdir -Force -Verbose $folder;
|
||||||
rm -Force -Recurse -Verbose "$folder/*";
|
|
||||||
|
|
||||||
foreach ($arch in @("x86", "x64"))
|
foreach ($arch in @("x86", "x64"))
|
||||||
{
|
{
|
||||||
@ -51,24 +51,28 @@ foreach ($language in @{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rm -Force -Recurse -Verbose "Runtime";
|
||||||
mkdir -Force -Verbose "Runtime";
|
mkdir -Force -Verbose "Runtime";
|
||||||
rm -Force -Recurse -Verbose "Runtime/*";
|
foreach ($arch in @("x86", "x64"))
|
||||||
foreach ($file in @(
|
{
|
||||||
|
mkdir -Force -Verbose "Runtime/$arch";
|
||||||
|
foreach ($file in @(
|
||||||
|
"LoaderDll.dll",
|
||||||
|
"LocaleEmulator.dll",
|
||||||
"Qt5Core.dll",
|
"Qt5Core.dll",
|
||||||
"Qt5Gui.dll",
|
"Qt5Gui.dll",
|
||||||
"Qt5Widgets.dll",
|
"Qt5Widgets.dll",
|
||||||
"LoaderDll.dll",
|
|
||||||
"LocaleEmulator.dll",
|
|
||||||
"platforms",
|
"platforms",
|
||||||
"styles"
|
"styles"
|
||||||
))
|
))
|
||||||
{
|
|
||||||
foreach ($arch in @("x86", "x64"))
|
|
||||||
{
|
{
|
||||||
mkdir -Force -Verbose "Runtime/$arch";
|
|
||||||
copy -Force -Recurse -Verbose -Destination "Runtime/$arch/$file" -Path "Release_$arch/$file";
|
copy -Force -Recurse -Verbose -Destination "Runtime/$arch/$file" -Path "Release_$arch/$file";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rm -Force -Recurse -Verbose "Textractor";
|
||||||
|
mkdir -Force -Verbose "Textractor";
|
||||||
|
copy -Force -Recurse -Verbose -Destination "Textractor" -Path @("Runtime/*", "Textractor--$version/*");
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
&"C:\Program Files (x86)\Inno Setup 6\iscc.exe" -DVERSION="$version" installer.iss
|
&"C:\Program Files (x86)\Inno Setup 6\iscc.exe" -DVERSION="$version" installer.iss
|
||||||
|
Loading…
Reference in New Issue
Block a user