[patch] 测试是否安装成功

This commit is contained in:
Gitea Actions Bot
2025-10-11 16:24:30 +08:00
parent afcd360603
commit ee7c76ef68
3 changed files with 22 additions and 6 deletions

View File

@@ -21,14 +21,14 @@ class NSISInstaller:
self.assets_dir = self.script_dir / "assets"
self.nsis_script = self.script_dir / "installer.nsi"
# 应用程序信息
self.app_name = "水滴AI客服智能助手"
# 应用程序信息使用英文避免CI/CD环境乱码
self.app_name = "ShuiDi AI Assistant"
self.app_name_en = "ShuiDi AI Assistant"
# 从 config.py 读取版本号(自动同步)
self.app_version = self._get_version_from_config()
self.app_publisher = "水滴智能科技"
self.app_publisher = "Shuidrop Technology"
self.app_url = "https://shuidrop.com/"
self.exe_name = "main.exe"
@@ -152,7 +152,7 @@ class NSISInstaller:
print(f"Installer name: {installer_name}")
nsis_content = f'''# 水滴AI客服智能助手 NSIS 安装脚本
nsis_content = f'''# ShuiDi AI Assistant NSIS Installer Script
# 自动生成于 {datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")}
Unicode True
@@ -195,7 +195,7 @@ InstallDirRegKey HKLM "Software\\${{APP_PUBLISHER}}\\${{APP_NAME_EN}}" "InstallP
# 版本信息
VIProductVersion "{self.app_version}.0"
VIAddVersionKey /LANG=2052 "ProductName" "${{APP_NAME}}"
VIAddVersionKey /LANG=2052 "Comments" "水滴AI客服智能助手"
VIAddVersionKey /LANG=2052 "Comments" "ShuiDi AI Assistant"
VIAddVersionKey /LANG=2052 "CompanyName" "${{APP_PUBLISHER}}"
VIAddVersionKey /LANG=2052 "FileDescription" "${{APP_NAME}} 安装程序"
VIAddVersionKey /LANG=2052 "FileVersion" "${{APP_VERSION}}"