207a9a8343
- 顶部更新 banner 只显示「发现新版本 vX」,不再附带 release notes - Inno Setup 安装向导改中文:随仓库带 ChineseSimplified.isl(加 UTF-8 BOM), .iss 用相对路径引用,compile-windows.sh 把它和 .iss 一起拷到构建目录, 不依赖 runner 上 Inno Setup 是否自带简中 - (检查更新无更新时的提示已在上个提交加好) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
60 lines
1.9 KiB
Plaintext
60 lines
1.9 KiB
Plaintext
; Inno Setup script for 岩美酒库 Windows 客户端
|
|
; Compiled in CI:
|
|
; ISCC /DAppVer=<ver> "/DSrcDir=<ReleaseDir>" "/DOutDir=<dist>" jiu-installer.iss
|
|
; Produces: <OutDir>\jiu-windows-x64-setup.exe
|
|
|
|
#ifndef AppVer
|
|
#define AppVer "0.0.0"
|
|
#endif
|
|
#ifndef SrcDir
|
|
#define SrcDir "."
|
|
#endif
|
|
#ifndef OutDir
|
|
#define OutDir "."
|
|
#endif
|
|
|
|
#define MyAppName "岩美酒库"
|
|
#define MyAppExe "jiu_client.exe"
|
|
#define MyAppPublisher "岩美"
|
|
|
|
[Setup]
|
|
AppId={{A3F5C1E2-9B47-4D8A-B6E0-2C1D4F8A9E33}
|
|
AppName={#MyAppName}
|
|
AppVersion={#AppVer}
|
|
AppPublisher={#MyAppPublisher}
|
|
DefaultDirName={autopf}\Jiu
|
|
DefaultGroupName={#MyAppName}
|
|
DisableProgramGroupPage=yes
|
|
OutputDir={#OutDir}
|
|
OutputBaseFilename=jiu-windows-x64-setup
|
|
Compression=lzma2
|
|
SolidCompression=yes
|
|
WizardStyle=modern
|
|
ArchitecturesAllowed=x64
|
|
ArchitecturesInstallIn64BitMode=x64
|
|
UninstallDisplayName={#MyAppName}
|
|
UninstallDisplayIcon={app}\{#MyAppExe}
|
|
; 应用内更新时本应用会先退出再启动安装包;这些选项确保能顺利覆盖。
|
|
CloseApplications=yes
|
|
RestartApplications=no
|
|
|
|
[Languages]
|
|
; 简体中文语言文件随仓库提供(deploy/windows/ChineseSimplified.isl),
|
|
; compile-windows.sh 会把它和本 .iss 一起拷到构建目录,按相对路径引用,
|
|
; 不依赖 Inno Setup 安装目录是否自带(默认不带简中)。
|
|
Name: "chinesesimp"; MessagesFile: "ChineseSimplified.isl"
|
|
|
|
[Tasks]
|
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkedonce
|
|
|
|
[Files]
|
|
Source: "{#SrcDir}\*"; DestDir: "{app}"; Flags: recursesubdirs createallsubdirs ignoreversion
|
|
|
|
[Icons]
|
|
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExe}"
|
|
Name: "{group}\卸载 {#MyAppName}"; Filename: "{uninstallexe}"
|
|
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExe}"; Tasks: desktopicon
|
|
|
|
[Run]
|
|
Filename: "{app}\{#MyAppExe}"; Description: "{cm:LaunchProgram,{#MyAppName}}"; Flags: nowait postinstall skipifsilent
|