From f97a21be32fc20a9c77fc3e224ee0d6f059410fd Mon Sep 17 00:00:00 2001 From: shanshanzhong Date: Mon, 24 Nov 2025 01:39:58 -0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=89=93=E5=8C=85=E9=85=8D=E7=BD=AE):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=AD=E6=96=87=E8=AF=AD=E8=A8=80=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=B9=B6=E6=9B=B4=E6=96=B0=E5=9B=BE=E6=A0=87=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加简体中文语言支持(zh, zh-cn, zh_CN)到安装配置 更新应用图标路径为绝对路径 在安装脚本中添加语言检测方法设置 --- windows/packaging/exe/inno_setup.sas | 3 +++ windows/packaging/exe/make_config.yaml | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/windows/packaging/exe/inno_setup.sas b/windows/packaging/exe/inno_setup.sas index a9f425f..c5e9580 100755 --- a/windows/packaging/exe/inno_setup.sas +++ b/windows/packaging/exe/inno_setup.sas @@ -14,6 +14,7 @@ Compression=lzma SolidCompression=yes SetupIconFile={{SETUP_ICON_FILE}} WizardStyle=modern +LanguageDetectionMethod=uilanguage PrivilegesRequired={{PRIVILEGES_REQUIRED}} ArchitecturesAllowed=x64 ArchitecturesInstallIn64BitMode=x64 @@ -26,6 +27,8 @@ CloseApplications=force {% if locale == 'bg' %}Name: "bulgarian"; MessagesFile: "compiler:Languages\\Bulgarian.isl"{% endif %} {% if locale == 'ca' %}Name: "catalan"; MessagesFile: "compiler:Languages\\Catalan.isl"{% endif %} {% if locale == 'zh' %}Name: "chinesesimplified"; MessagesFile: "compiler:Languages\\ChineseSimplified.isl"{% endif %} +{% if locale == 'zh-cn' %}Name: "chinesesimplified"; MessagesFile: "compiler:Languages\\ChineseSimplified.isl"{% endif %} +{% if locale == 'zh_CN' %}Name: "chinesesimplified"; MessagesFile: "compiler:Languages\\ChineseSimplified.isl"{% endif %} {% if locale == 'co' %}Name: "corsican"; MessagesFile: "compiler:Languages\\Corsican.isl"{% endif %} {% if locale == 'cs' %}Name: "czech"; MessagesFile: "compiler:Languages\\Czech.isl"{% endif %} {% if locale == 'da' %}Name: "danish"; MessagesFile: "compiler:Languages\\Danish.isl"{% endif %} diff --git a/windows/packaging/exe/make_config.yaml b/windows/packaging/exe/make_config.yaml index 5c686cd..1dc0a91 100755 --- a/windows/packaging/exe/make_config.yaml +++ b/windows/packaging/exe/make_config.yaml @@ -6,8 +6,11 @@ executable_name: HiFastVPN.exe output_base_file_name: HiFastVPN.exe create_desktop_icon: true install_dir_name: "{autopf64}\\HiFastVPN" -setup_icon_file: "{{SOURCE_DIR}}\\app_icon.ico" +setup_icon_file: C:\Users\xprotocal\Downloads\hi-client\windows\runner\resources\app_icon.ico locales: + - zh + - zh-cn + - zh_CN - ar - en - fa