94993b21b4
- app_icon.ico 重新由 assets/app-icon.svg 生成(穿山甲品牌图标,多尺寸),
替换残留的默认 Flutter logo —— 同时修好桌面图标与标题栏小图标。
- 窗口标题去掉 "VPN" 字眼:main.cpp 原生标题 pangolin_vpn → Pangolin;
main.dart 用 windowManager.setTitle('穿山甲') 显示中文品牌名;
Runner.rc 的 FileDescription/InternalName/ProductName → Pangolin。
- 系统托盘空白:Windows 走 Win32 Shell_NotifyIcon 只认 .ico(传 PNG 显示空白),
新增 BMP 编码的 assets/tray_icon.ico,system_tray.dart 按平台选 ico/png。
- 安装包版本 1.0.0 → 1.0.1(pubspec 1.0.1+2)便于区分测试构建。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
50 lines
1.9 KiB
Plaintext
50 lines
1.9 KiB
Plaintext
; 穿山甲 Pangolin Windows 安装包 (Inno Setup 6)
|
|
; 编译: ISCC.exe pangolin.iss (或用 Inno Setup Compiler 打开)
|
|
; 前置: 先在 client/ 跑 `flutter build windows`(Release),产物在
|
|
; ..\..\build\windows\x64\runner\Release
|
|
#define MyAppName "穿山甲 Pangolin"
|
|
#define MyAppVersion "1.0.1"
|
|
#define MyAppPublisher "Pangolin"
|
|
#define MyAppExeName "pangolin_vpn.exe"
|
|
#define BuildDir "..\..\build\windows\x64\runner\Release"
|
|
|
|
[Setup]
|
|
AppId={{B2F1B0A0-7A3C-4C2E-9E5A-1A2B3C4D5E6F}
|
|
AppName={#MyAppName}
|
|
AppVersion={#MyAppVersion}
|
|
AppPublisher={#MyAppPublisher}
|
|
DefaultDirName={autopf}\Pangolin
|
|
DefaultGroupName=Pangolin
|
|
DisableProgramGroupPage=yes
|
|
OutputBaseFilename=pangolin-setup-{#MyAppVersion}
|
|
Compression=lzma2
|
|
SolidCompression=yes
|
|
WizardStyle=modern
|
|
; 安装需管理员(写 Program Files;app 本身 requireAdministrator)
|
|
PrivilegesRequired=admin
|
|
ArchitecturesInstallIn64BitMode=x64compatible
|
|
|
|
[Languages]
|
|
; ChineseSimplified.isl 随仓库附带(此 Inno Setup 安装未含官方简中语言包),与本 .iss 同目录
|
|
Name: "chinesesimplified"; MessagesFile: "ChineseSimplified.isl"
|
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
|
|
|
[Files]
|
|
; 整个 Release 目录(含 pangolin_vpn.exe / flutter_windows.dll / data\ /
|
|
; 插件 dll / sing-box.exe / wintun.dll)
|
|
Source: "{#BuildDir}\*"; DestDir: "{app}"; Flags: recursesubdirs createallsubdirs ignoreversion
|
|
|
|
[Icons]
|
|
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
|
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
|
|
|
[Tasks]
|
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"
|
|
|
|
[Run]
|
|
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#MyAppName}}"; Flags: nowait postinstall skipifsilent
|
|
|
|
[UninstallDelete]
|
|
; 卸载清理运行期数据(kernel 配置等)
|
|
Type: filesandordirs; Name: "{localappdata}\Pangolin"
|