mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 17:04:12 +08:00
add installer
This commit is contained in:
parent
5f5c5d5a1a
commit
fc2676e403
31
deploy.ps1
31
deploy.ps1
@ -32,11 +32,6 @@ foreach ($language in @{
|
|||||||
"Textractor.exe",
|
"Textractor.exe",
|
||||||
"TextractorCLI.exe",
|
"TextractorCLI.exe",
|
||||||
"texthook.dll",
|
"texthook.dll",
|
||||||
"Qt5Core.dll",
|
|
||||||
"Qt5Gui.dll",
|
|
||||||
"Qt5Widgets.dll",
|
|
||||||
"LoaderDll.dll",
|
|
||||||
"LocaleEmulator.dll",
|
|
||||||
"Bing Translate.dll",
|
"Bing Translate.dll",
|
||||||
"Copy to Clipboard.dll",
|
"Copy to Clipboard.dll",
|
||||||
"Extra Newlines.dll",
|
"Extra Newlines.dll",
|
||||||
@ -48,12 +43,32 @@ foreach ($language in @{
|
|||||||
"Remove Repeated Phrases.dll",
|
"Remove Repeated Phrases.dll",
|
||||||
"Remove 30 Repeated Sentences.dll",
|
"Remove 30 Repeated Sentences.dll",
|
||||||
"Replacer.dll",
|
"Replacer.dll",
|
||||||
"Thread Linker.dll",
|
"Thread Linker.dll"
|
||||||
"platforms",
|
|
||||||
"styles"
|
|
||||||
))
|
))
|
||||||
{
|
{
|
||||||
copy -Force -Recurse -Verbose -Destination "$folder/$arch" -Path "Release_$arch/$file";
|
copy -Force -Recurse -Verbose -Destination "$folder/$arch" -Path "Release_$arch/$file";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mkdir -Force -Verbose "Runtime";
|
||||||
|
rm -Force -Recurse -Verbose "Runtime/*";
|
||||||
|
foreach ($file in @(
|
||||||
|
"Qt5Core.dll",
|
||||||
|
"Qt5Gui.dll",
|
||||||
|
"Qt5Widgets.dll",
|
||||||
|
"LoaderDll.dll",
|
||||||
|
"LocaleEmulator.dll",
|
||||||
|
"platforms",
|
||||||
|
"styles"
|
||||||
|
))
|
||||||
|
{
|
||||||
|
foreach ($arch in @("x86", "x64"))
|
||||||
|
{
|
||||||
|
mkdir -Force -Verbose "Runtime/$arch";
|
||||||
|
copy -Force -Recurse -Verbose -Destination "Runtime/$arch/$file" -Path "Release_$arch/$file";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
&"C:\Program Files (x86)\Inno Setup 6\iscc.exe" -DVERSION="$version" installer.iss
|
||||||
|
35
installer.iss
Normal file
35
installer.iss
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
[Setup]
|
||||||
|
AllowNoIcons=yes
|
||||||
|
AppName=Textractor
|
||||||
|
ArchitecturesAllowed=x86 x64
|
||||||
|
AppVersion={#VERSION}
|
||||||
|
CloseApplications=no
|
||||||
|
DefaultDirName={userdesktop}\Textractor
|
||||||
|
DirExistsWarning=no
|
||||||
|
DefaultGroupName=Textractor
|
||||||
|
MinVersion=6.1
|
||||||
|
OutputBaseFilename=Textractor-{#VERSION}-Setup
|
||||||
|
OutputDir=Builds
|
||||||
|
PrivilegesRequired=lowest
|
||||||
|
SolidCompression=yes
|
||||||
|
Uninstallable=no
|
||||||
|
|
||||||
|
[Languages]
|
||||||
|
Name: "en"; MessagesFile: "compiler:Default.isl"
|
||||||
|
Name: "es"; MessagesFile: "compiler:Languages\Spanish.isl"
|
||||||
|
Name: "ru"; MessagesFile: "compiler:Languages\Russian.isl"
|
||||||
|
Name: "tu"; MessagesFile: "compiler:Languages\Turkish.isl"
|
||||||
|
Name: "sc"; MessagesFile: "compiler:Languages\Unofficial\ChineseSimplified.isl"
|
||||||
|
Name: "id"; MessagesFile: "compiler:Languages\Unofficial\Indonesian.isl"
|
||||||
|
Name: "pt"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"
|
||||||
|
|
||||||
|
|
||||||
|
[Files]
|
||||||
|
Source: "Builds\Runtime\*"; DestDir: "{app}"; Flags: recursesubdirs ignoreversion
|
||||||
|
Source: "Builds\Textractor--{#VERSION}\*"; DestDir: "{app}"; Flags: recursesubdirs ignoreversion
|
||||||
|
Source: "Builds\Textractor-Spanish-{#VERSION}\*"; DestDir: "{app}"; Languages: es; Flags: recursesubdirs ignoreversion
|
||||||
|
Source: "Builds\Textractor-Russian-{#VERSION}\*"; DestDir: "{app}"; Languages: es; Flags: recursesubdirs ignoreversion
|
||||||
|
Source: "Builds\Textractor-Turkish-{#VERSION}\*"; DestDir: "{app}"; Languages: tu; Flags: recursesubdirs ignoreversion
|
||||||
|
Source: "Builds\Textractor-Simplified-Chinese-{#VERSION}\*"; DestDir: "{app}"; Languages: sc; Flags: recursesubdirs ignoreversion
|
||||||
|
Source: "Builds\Textractor-Indonesian-{#VERSION}\*"; DestDir: "{app}"; Languages: id; Flags: recursesubdirs ignoreversion
|
||||||
|
Source: "Builds\Textractor-Portuguese-{#VERSION}\*"; DestDir: "{app}"; Languages: pt; Flags: recursesubdirs ignoreversion
|
Loading…
x
Reference in New Issue
Block a user