add installer

This commit is contained in:
Akash Mozumdar 2019-06-21 23:19:29 -04:00
parent 5f5c5d5a1a
commit fc2676e403
2 changed files with 58 additions and 8 deletions

View File

@ -32,11 +32,6 @@ foreach ($language in @{
"Textractor.exe",
"TextractorCLI.exe",
"texthook.dll",
"Qt5Core.dll",
"Qt5Gui.dll",
"Qt5Widgets.dll",
"LoaderDll.dll",
"LocaleEmulator.dll",
"Bing Translate.dll",
"Copy to Clipboard.dll",
"Extra Newlines.dll",
@ -48,12 +43,32 @@ foreach ($language in @{
"Remove Repeated Phrases.dll",
"Remove 30 Repeated Sentences.dll",
"Replacer.dll",
"Thread Linker.dll",
"platforms",
"styles"
"Thread Linker.dll"
))
{
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
View 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