Skip to content

Commit f02fcb2

Browse files
committedAug 17, 2024
ci: add inno setup build file
- add inno setup build file - align localizations definitions - update .gitignore
1 parent 52c789e commit f02fcb2

File tree

3 files changed

+111
-29
lines changed

3 files changed

+111
-29
lines changed
 

‎.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ src/*
2424
docs/*
2525
!docs/*.py
2626

27-
# Allow assets folder, but only .svg, .png, .rc, .css and .ico files
27+
# Allow assets folder, but only .svg, .png, .rc, .css, .iss and .ico files
2828
!assets/
2929
assets/*
3030
!assets/*.svg
@@ -33,6 +33,7 @@ assets/*
3333
!assets/*.rc
3434
!assets/*.res
3535
!assets/*.css
36+
!assets/*.iss
3637

3738
# Allow .github folder and its contents
3839
!.github/

‎assets/autogguf.iss

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
#define MyAppName "AutoGGUF"
2+
#define MyAppVersion "v1.7.1"
3+
#define MyAppPublisher "leafspark"
4+
#define MyAppURL "https://github.com/leafspark/AutoGGUF"
5+
#define MyAppExeName "AutoGGUF-x64.exe"
6+
#define MyAppAssocName MyAppName + " File"
7+
#define MyAppAssocExt ".gguf"
8+
#define MyAppAssocKey StringChange(MyAppAssocName, " ", "") + MyAppAssocExt
9+
10+
[Setup]
11+
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
12+
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
13+
AppId={{9753D5EB-05A8-489B-86A4-FCE6341FDE0E}
14+
AppName={#MyAppName}
15+
AppVersion={#MyAppVersion}
16+
;AppVerName={#MyAppName} {#MyAppVersion}
17+
AppPublisher={#MyAppPublisher}
18+
AppPublisherURL={#MyAppURL}
19+
AppSupportURL={#MyAppURL}
20+
AppUpdatesURL={#MyAppURL}
21+
DefaultDirName={autopf}\{#MyAppName}
22+
; "ArchitecturesAllowed=x64compatible" specifies that Setup cannot run
23+
; on anything but x64 and Windows 11 on Arm.
24+
ArchitecturesAllowed=x64compatible
25+
; "ArchitecturesInstallIn64BitMode=x64compatible" requests that the
26+
; install be done in "64-bit mode" on x64 or Windows 11 on Arm,
27+
; meaning it should use the native 64-bit Program Files directory and
28+
; the 64-bit view of the registry.
29+
ArchitecturesInstallIn64BitMode=x64compatible
30+
ChangesAssociations=yes
31+
DisableProgramGroupPage=yes
32+
LicenseFile=F:\autogguf-release\LICENSE.txt
33+
; Remove the following line to run in administrative install mode (install for all users.)
34+
PrivilegesRequired=lowest
35+
PrivilegesRequiredOverridesAllowed=dialog
36+
OutputDir=E:\Downloads\autogguf-inno
37+
OutputBaseFilename=autogguf
38+
Compression=lzma
39+
SolidCompression=yes
40+
WizardStyle=modern
41+
42+
[Languages]
43+
Name: "english"; MessagesFile: "compiler:Default.isl"
44+
Name: "brazilianportuguese"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"
45+
Name: "dutch"; MessagesFile: "compiler:Languages\Dutch.isl"
46+
Name: "finnish"; MessagesFile: "compiler:Languages\Finnish.isl"
47+
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
48+
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
49+
Name: "hungarian"; MessagesFile: "compiler:Languages\Hungarian.isl"
50+
Name: "italian"; MessagesFile: "compiler:Languages\Italian.isl"
51+
Name: "japanese"; MessagesFile: "compiler:Languages\Japanese.isl"
52+
Name: "korean"; MessagesFile: "compiler:Languages\Korean.isl"
53+
Name: "polish"; MessagesFile: "compiler:Languages\Polish.isl"
54+
Name: "portuguese"; MessagesFile: "compiler:Languages\Portuguese.isl"
55+
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
56+
Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
57+
Name: "turkish"; MessagesFile: "compiler:Languages\Turkish.isl"
58+
Name: "ukrainian"; MessagesFile: "compiler:Languages\Ukrainian.isl"
59+
60+
[Tasks]
61+
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
62+
63+
[Files]
64+
Source: "F:\autogguf-release\AutoGGUF-v1.7.1-Windows-avx2-standard\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
65+
Source: "F:\autogguf-release\AutoGGUF-v1.7.1-Windows-avx2-standard\src\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
66+
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
67+
68+
[Registry]
69+
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocExt}\OpenWithProgids"; ValueType: string; ValueName: "{#MyAppAssocKey}"; ValueData: ""; Flags: uninsdeletevalue
70+
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppAssocName}"; Flags: uninsdeletekey
71+
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"
72+
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
73+
Root: HKA; Subkey: "Software\Classes\Applications\{#MyAppExeName}\SupportedTypes"; ValueType: string; ValueName: ".myp"; ValueData: ""
74+
75+
[Icons]
76+
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
77+
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
78+
79+
[Run]
80+
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
81+

‎src/Localizations.py

+28-28
Original file line numberDiff line numberDiff line change
@@ -6071,34 +6071,34 @@ def __init__(self):
60716071

60726072
# Dictionary to map language codes to classes
60736073
_languages = {
6074-
"en-US": _English, # American English
6075-
"fr-FR": _French, # Metropolitan French
6076-
"zh-CN": _SimplifiedChinese, # Simplified Chinese
6077-
"es-ES": _Spanish, # Spanish (Spain)
6078-
"hi-IN": _Hindi, # Hindi (India)
6079-
"ru-RU": _Russian, # Russian (Russia)
6080-
"uk-UA": _Ukrainian, # Ukrainian (Ukraine)
6081-
"ja-JP": _Japanese, # Japanese (Japan)
6082-
"de-DE": _German, # German (Germany)
6083-
"pt-BR": _Portuguese, # Portuguese (Brazil)
6084-
"ar-SA": _Arabic, # Arabic (Saudi Arabia)
6085-
"ko-KR": _Korean, # Korean (Korea)
6086-
"it-IT": _Italian, # Italian (Italy)
6087-
"tr-TR": _Turkish, # Turkish (Turkey)
6088-
"nl-NL": _Dutch, # Dutch (Netherlands)
6089-
"fi-FI": _Finnish, # Finnish (Finland)
6090-
"bn-BD": _Bengali, # Bengali (Bangladesh)
6091-
"cs-CZ": _Czech, # Czech (Czech Republic)
6092-
"pl-PL": _Polish, # Polish (Poland)
6093-
"ro-RO": _Romanian, # Romanian (Romania)
6094-
"el-GR": _Greek, # Greek (Greece)
6095-
"pt-PT": _Portuguese_PT, # Portuguese (Portugal)
6096-
"hu-HU": _Hungarian, # Hungarian (Hungary)
6097-
"en-GB": _BritishEnglish, # British English
6098-
"fr-CA": _CanadianFrench, # Canadian French
6099-
"en-IN": _IndianEnglish, # Indian English
6100-
"en-CA": _CanadianEnglish, # Canadian English
6101-
"zh-TW": _TraditionalChinese, # Traditional Chinese (Taiwan)
6074+
"en-US": _English, # American English
6075+
"fr-FR": _French, # Metropolitan French
6076+
"zh-CN": _SimplifiedChinese, # Simplified Chinese
6077+
"es-ES": _Spanish, # Spanish (Spain)
6078+
"hi-IN": _Hindi, # Hindi (India)
6079+
"ru-RU": _Russian, # Russian (Russia)
6080+
"uk-UA": _Ukrainian, # Ukrainian (Ukraine)
6081+
"ja-JP": _Japanese, # Japanese (Japan)
6082+
"de-DE": _German, # German (Germany)
6083+
"pt-BR": _Portuguese, # Portuguese (Brazil)
6084+
"ar-SA": _Arabic, # Arabic (Saudi Arabia)
6085+
"ko-KR": _Korean, # Korean (Korea)
6086+
"it-IT": _Italian, # Italian (Italy)
6087+
"tr-TR": _Turkish, # Turkish (Turkey)
6088+
"nl-NL": _Dutch, # Dutch (Netherlands)
6089+
"fi-FI": _Finnish, # Finnish (Finland)
6090+
"bn-BD": _Bengali, # Bengali (Bangladesh)
6091+
"cs-CZ": _Czech, # Czech (Czech Republic)
6092+
"pl-PL": _Polish, # Polish (Poland)
6093+
"ro-RO": _Romanian, # Romanian (Romania)
6094+
"el-GR": _Greek, # Greek (Greece)
6095+
"pt-PT": _Portuguese_PT, # Portuguese (Portugal)
6096+
"hu-HU": _Hungarian, # Hungarian (Hungary)
6097+
"en-GB": _BritishEnglish, # British English
6098+
"fr-CA": _CanadianFrench, # Canadian French
6099+
"en-IN": _IndianEnglish, # Indian English
6100+
"en-CA": _CanadianEnglish, # Canadian English
6101+
"zh-TW": _TraditionalChinese, # Traditional Chinese (Taiwan)
61026102
}
61036103

61046104

0 commit comments

Comments
 (0)