feat(installer): restore Russian UI and setup icon
- re-enable Russian language entry and Russian labels in Inno script - restore SetupIconFile via MyIconFile define - pass MyIconFile from build.py with explicit file existence check
This commit is contained in:
6
build.py
6
build.py
@@ -204,18 +204,24 @@ def build_installer():
|
||||
source_dir = os.path.abspath(DIST_DIR)
|
||||
output_dir = os.path.abspath("dist")
|
||||
iss_path = os.path.abspath(INSTALLER_SCRIPT)
|
||||
icon_path = os.path.abspath(ICON_PATH)
|
||||
print(f"[INFO] ISCC source dir: {source_dir}")
|
||||
print(f"[INFO] ISCC output dir: {output_dir}")
|
||||
print(f"[INFO] ISCC script: {iss_path}")
|
||||
print(f"[INFO] ISCC icon path: {icon_path}")
|
||||
if not os.path.exists(source_dir):
|
||||
print(f"[ERROR] Source dir does not exist: {source_dir}")
|
||||
sys.exit(1)
|
||||
if not os.path.exists(iss_path):
|
||||
print(f"[ERROR] Installer script does not exist: {iss_path}")
|
||||
sys.exit(1)
|
||||
if not os.path.exists(icon_path):
|
||||
print(f"[ERROR] Icon file does not exist: {icon_path}")
|
||||
sys.exit(1)
|
||||
command = [
|
||||
iscc_path,
|
||||
f"/DMyAppVersion={VERSION}",
|
||||
f"/DMyIconFile={icon_path}",
|
||||
f"/O{output_dir}",
|
||||
iss_path,
|
||||
]
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
#ifndef MyAppVersion
|
||||
#define MyAppVersion "0.0.0"
|
||||
#endif
|
||||
#ifndef MyIconFile
|
||||
#define MyIconFile "..\icon.ico"
|
||||
#endif
|
||||
|
||||
[Setup]
|
||||
AppId={{6CD9D6F2-4B95-4E9C-A8D8-2A9C8F6AA741}
|
||||
@@ -19,12 +22,14 @@ SolidCompression=yes
|
||||
WizardStyle=modern
|
||||
ArchitecturesInstallIn64BitMode=x64compatible
|
||||
UninstallDisplayIcon={app}\AnabasisManager.exe
|
||||
SetupIconFile={#MyIconFile}
|
||||
|
||||
[Languages]
|
||||
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
|
||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||
|
||||
[Tasks]
|
||||
Name: "desktopicon"; Description: "Create a desktop shortcut"; GroupDescription: "Additional tasks:"
|
||||
Name: "desktopicon"; Description: "Создать ярлык на рабочем столе"; GroupDescription: "Дополнительные задачи:"
|
||||
|
||||
[Files]
|
||||
Source: "..\dist\AnabasisManager\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
@@ -34,4 +39,4 @@ Name: "{group}\Anabasis Manager"; Filename: "{app}\AnabasisManager.exe"
|
||||
Name: "{autodesktop}\Anabasis Manager"; Filename: "{app}\AnabasisManager.exe"; Tasks: desktopicon
|
||||
|
||||
[Run]
|
||||
Filename: "{app}\AnabasisManager.exe"; Description: "Launch Anabasis Manager"; Flags: nowait postinstall skipifsilent
|
||||
Filename: "{app}\AnabasisManager.exe"; Description: "Запустить Anabasis Manager"; Flags: nowait postinstall skipifsilent
|
||||
|
||||
Reference in New Issue
Block a user