feat: 优化客户端配置和跨平台支持

This commit is contained in:
2026-07-15 06:39:45 +00:00
parent 4ddc5dfdf5
commit fb6b080ad4
17 changed files with 121 additions and 36 deletions
+5 -5
View File
@@ -48,11 +48,11 @@ function Join-RelativePath([string]$Base, [string]$Child) {
return "$baseNorm/$childNorm"
}
$requiredFields = @(
"app_id", "channel", "api_base_url", "current_version",
"client_token", "launch_token", "license_key",
"main_executable", "launcher_executable", "updater_executable", "bootstrap_executable"
)
$requiredFields = @(
"app_id", "channel", "current_version",
"client_token", "launch_token", "license_key",
"main_executable", "launcher_executable", "updater_executable", "bootstrap_executable"
)
foreach ($field in $requiredFields) {
if (-not $settings.$field) {
throw "Config file is missing required field: $field"