客户端配置说明 ============== 统一从程序目录下的 config/app_config.json 读取配置。 首次运行时如果该文件不存在且发现旧 client.ini,会自动迁移。 接入新软件时通常需要修改: 1. app_id、app_name、channel、current_version。 2. api_base_url、client_token、license_key、launch_token。 3. main_executable:团队业务主程序文件名。 4. launcher_executable、updater_executable、bootstrap_executable。 5. health_check_timeout_ms:升级后等待业务程序健康确认的毫秒数,最小 1000。 完整格式参考 config/app_config.example.json。 运行时生成的 app_config.json、client_identity.dat、local_state.json 等文件不得打入通用 SDK 模板。 Windows 发布打包: 1. 使用 Release 配置编译全部客户端程序。 2. 先完成当前版本在线校验,确认 out/bin/update/manifest_cache 中存在对应的签名 Manifest。 3. 准备一份实际 app_config.json,确认其中包含正确的 License Key、当前版本和业务程序名。 4. 在 PowerShell 执行: powershell -ExecutionPolicy Bypass -File .\package-client.ps1 -ConfigFile .\config\app_config.json 5. 输出位于 dist/UpdateClient 和 dist/UpdateClient.zip。 脚本会拒绝 Debug DLL、PDB、嵌套重复主程序和缺少签名 Manifest 的发布源目录。