mirror of https://github.com/leafspark/AutoGGUF
ci: add inno setup build file
- add inno setup build file - align localizations definitions - update .gitignore
This commit is contained in:
parent
52c789e374
commit
f02fcb28de
|
@ -24,7 +24,7 @@ src/*
|
||||||
docs/*
|
docs/*
|
||||||
!docs/*.py
|
!docs/*.py
|
||||||
|
|
||||||
# Allow assets folder, but only .svg, .png, .rc, .css and .ico files
|
# Allow assets folder, but only .svg, .png, .rc, .css, .iss and .ico files
|
||||||
!assets/
|
!assets/
|
||||||
assets/*
|
assets/*
|
||||||
!assets/*.svg
|
!assets/*.svg
|
||||||
|
@ -33,6 +33,7 @@ assets/*
|
||||||
!assets/*.rc
|
!assets/*.rc
|
||||||
!assets/*.res
|
!assets/*.res
|
||||||
!assets/*.css
|
!assets/*.css
|
||||||
|
!assets/*.iss
|
||||||
|
|
||||||
# Allow .github folder and its contents
|
# Allow .github folder and its contents
|
||||||
!.github/
|
!.github/
|
||||||
|
|
|
@ -0,0 +1,81 @@
|
||||||
|
#define MyAppName "AutoGGUF"
|
||||||
|
#define MyAppVersion "v1.7.1"
|
||||||
|
#define MyAppPublisher "leafspark"
|
||||||
|
#define MyAppURL "https://github.com/leafspark/AutoGGUF"
|
||||||
|
#define MyAppExeName "AutoGGUF-x64.exe"
|
||||||
|
#define MyAppAssocName MyAppName + " File"
|
||||||
|
#define MyAppAssocExt ".gguf"
|
||||||
|
#define MyAppAssocKey StringChange(MyAppAssocName, " ", "") + MyAppAssocExt
|
||||||
|
|
||||||
|
[Setup]
|
||||||
|
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
|
||||||
|
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
||||||
|
AppId={{9753D5EB-05A8-489B-86A4-FCE6341FDE0E}
|
||||||
|
AppName={#MyAppName}
|
||||||
|
AppVersion={#MyAppVersion}
|
||||||
|
;AppVerName={#MyAppName} {#MyAppVersion}
|
||||||
|
AppPublisher={#MyAppPublisher}
|
||||||
|
AppPublisherURL={#MyAppURL}
|
||||||
|
AppSupportURL={#MyAppURL}
|
||||||
|
AppUpdatesURL={#MyAppURL}
|
||||||
|
DefaultDirName={autopf}\{#MyAppName}
|
||||||
|
; "ArchitecturesAllowed=x64compatible" specifies that Setup cannot run
|
||||||
|
; on anything but x64 and Windows 11 on Arm.
|
||||||
|
ArchitecturesAllowed=x64compatible
|
||||||
|
; "ArchitecturesInstallIn64BitMode=x64compatible" requests that the
|
||||||
|
; install be done in "64-bit mode" on x64 or Windows 11 on Arm,
|
||||||
|
; meaning it should use the native 64-bit Program Files directory and
|
||||||
|
; the 64-bit view of the registry.
|
||||||
|
ArchitecturesInstallIn64BitMode=x64compatible
|
||||||
|
ChangesAssociations=yes
|
||||||
|
DisableProgramGroupPage=yes
|
||||||
|
LicenseFile=F:\autogguf-release\LICENSE.txt
|
||||||
|
; Remove the following line to run in administrative install mode (install for all users.)
|
||||||
|
PrivilegesRequired=lowest
|
||||||
|
PrivilegesRequiredOverridesAllowed=dialog
|
||||||
|
OutputDir=E:\Downloads\autogguf-inno
|
||||||
|
OutputBaseFilename=autogguf
|
||||||
|
Compression=lzma
|
||||||
|
SolidCompression=yes
|
||||||
|
WizardStyle=modern
|
||||||
|
|
||||||
|
[Languages]
|
||||||
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||||
|
Name: "brazilianportuguese"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"
|
||||||
|
Name: "dutch"; MessagesFile: "compiler:Languages\Dutch.isl"
|
||||||
|
Name: "finnish"; MessagesFile: "compiler:Languages\Finnish.isl"
|
||||||
|
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
|
||||||
|
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
|
||||||
|
Name: "hungarian"; MessagesFile: "compiler:Languages\Hungarian.isl"
|
||||||
|
Name: "italian"; MessagesFile: "compiler:Languages\Italian.isl"
|
||||||
|
Name: "japanese"; MessagesFile: "compiler:Languages\Japanese.isl"
|
||||||
|
Name: "korean"; MessagesFile: "compiler:Languages\Korean.isl"
|
||||||
|
Name: "polish"; MessagesFile: "compiler:Languages\Polish.isl"
|
||||||
|
Name: "portuguese"; MessagesFile: "compiler:Languages\Portuguese.isl"
|
||||||
|
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
|
||||||
|
Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
|
||||||
|
Name: "turkish"; MessagesFile: "compiler:Languages\Turkish.isl"
|
||||||
|
Name: "ukrainian"; MessagesFile: "compiler:Languages\Ukrainian.isl"
|
||||||
|
|
||||||
|
[Tasks]
|
||||||
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||||
|
|
||||||
|
[Files]
|
||||||
|
Source: "F:\autogguf-release\AutoGGUF-v1.7.1-Windows-avx2-standard\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
|
Source: "F:\autogguf-release\AutoGGUF-v1.7.1-Windows-avx2-standard\src\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||||
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||||||
|
|
||||||
|
[Registry]
|
||||||
|
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocExt}\OpenWithProgids"; ValueType: string; ValueName: "{#MyAppAssocKey}"; ValueData: ""; Flags: uninsdeletevalue
|
||||||
|
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppAssocName}"; Flags: uninsdeletekey
|
||||||
|
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"
|
||||||
|
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
|
||||||
|
Root: HKA; Subkey: "Software\Classes\Applications\{#MyAppExeName}\SupportedTypes"; ValueType: string; ValueName: ".myp"; ValueData: ""
|
||||||
|
|
||||||
|
[Icons]
|
||||||
|
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
||||||
|
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
||||||
|
|
||||||
|
[Run]
|
||||||
|
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||||
|
|
|
@ -6071,34 +6071,34 @@ def __init__(self):
|
||||||
|
|
||||||
# Dictionary to map language codes to classes
|
# Dictionary to map language codes to classes
|
||||||
_languages = {
|
_languages = {
|
||||||
"en-US": _English, # American English
|
"en-US": _English, # American English
|
||||||
"fr-FR": _French, # Metropolitan French
|
"fr-FR": _French, # Metropolitan French
|
||||||
"zh-CN": _SimplifiedChinese, # Simplified Chinese
|
"zh-CN": _SimplifiedChinese, # Simplified Chinese
|
||||||
"es-ES": _Spanish, # Spanish (Spain)
|
"es-ES": _Spanish, # Spanish (Spain)
|
||||||
"hi-IN": _Hindi, # Hindi (India)
|
"hi-IN": _Hindi, # Hindi (India)
|
||||||
"ru-RU": _Russian, # Russian (Russia)
|
"ru-RU": _Russian, # Russian (Russia)
|
||||||
"uk-UA": _Ukrainian, # Ukrainian (Ukraine)
|
"uk-UA": _Ukrainian, # Ukrainian (Ukraine)
|
||||||
"ja-JP": _Japanese, # Japanese (Japan)
|
"ja-JP": _Japanese, # Japanese (Japan)
|
||||||
"de-DE": _German, # German (Germany)
|
"de-DE": _German, # German (Germany)
|
||||||
"pt-BR": _Portuguese, # Portuguese (Brazil)
|
"pt-BR": _Portuguese, # Portuguese (Brazil)
|
||||||
"ar-SA": _Arabic, # Arabic (Saudi Arabia)
|
"ar-SA": _Arabic, # Arabic (Saudi Arabia)
|
||||||
"ko-KR": _Korean, # Korean (Korea)
|
"ko-KR": _Korean, # Korean (Korea)
|
||||||
"it-IT": _Italian, # Italian (Italy)
|
"it-IT": _Italian, # Italian (Italy)
|
||||||
"tr-TR": _Turkish, # Turkish (Turkey)
|
"tr-TR": _Turkish, # Turkish (Turkey)
|
||||||
"nl-NL": _Dutch, # Dutch (Netherlands)
|
"nl-NL": _Dutch, # Dutch (Netherlands)
|
||||||
"fi-FI": _Finnish, # Finnish (Finland)
|
"fi-FI": _Finnish, # Finnish (Finland)
|
||||||
"bn-BD": _Bengali, # Bengali (Bangladesh)
|
"bn-BD": _Bengali, # Bengali (Bangladesh)
|
||||||
"cs-CZ": _Czech, # Czech (Czech Republic)
|
"cs-CZ": _Czech, # Czech (Czech Republic)
|
||||||
"pl-PL": _Polish, # Polish (Poland)
|
"pl-PL": _Polish, # Polish (Poland)
|
||||||
"ro-RO": _Romanian, # Romanian (Romania)
|
"ro-RO": _Romanian, # Romanian (Romania)
|
||||||
"el-GR": _Greek, # Greek (Greece)
|
"el-GR": _Greek, # Greek (Greece)
|
||||||
"pt-PT": _Portuguese_PT, # Portuguese (Portugal)
|
"pt-PT": _Portuguese_PT, # Portuguese (Portugal)
|
||||||
"hu-HU": _Hungarian, # Hungarian (Hungary)
|
"hu-HU": _Hungarian, # Hungarian (Hungary)
|
||||||
"en-GB": _BritishEnglish, # British English
|
"en-GB": _BritishEnglish, # British English
|
||||||
"fr-CA": _CanadianFrench, # Canadian French
|
"fr-CA": _CanadianFrench, # Canadian French
|
||||||
"en-IN": _IndianEnglish, # Indian English
|
"en-IN": _IndianEnglish, # Indian English
|
||||||
"en-CA": _CanadianEnglish, # Canadian English
|
"en-CA": _CanadianEnglish, # Canadian English
|
||||||
"zh-TW": _TraditionalChinese, # Traditional Chinese (Taiwan)
|
"zh-TW": _TraditionalChinese, # Traditional Chinese (Taiwan)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue