diff --git a/scripts/build-client.bat b/scripts/build-client.bat index 2967393..0522963 100644 --- a/scripts/build-client.bat +++ b/scripts/build-client.bat @@ -349,11 +349,11 @@ REM 使用 PowerShell 更新 database.type (使用 UTF8 without BOM) if /i "%DATABASE_TYPE%"=="sqlite" ( REM SQLite 模式: 設定 type=sqlite,清空 MySQL 連線資訊 powershell -Command "$config = Get-Content '%CONFIG_FILE%' -Raw | ConvertFrom-Json; $config.backend.database.type = 'sqlite'; $config.backend.database.host = ''; $config.backend.database.user = ''; $config.backend.database.password = ''; $config.backend.database.database = ''; $json = $config | ConvertTo-Json -Depth 10; [System.IO.File]::WriteAllText('%CONFIG_FILE%', $json, [System.Text.UTF8Encoding]::new($false))" - echo %GREEN%[OK]%NC% 資料庫類型已設定為: SQLite (本地模式) + echo %GREEN%[OK]%NC% 資料庫類型已設定為: SQLite ^(本地模式^) ) else ( REM MySQL 模式: 僅設定 type=mysql,保留連線資訊 powershell -Command "$config = Get-Content '%CONFIG_FILE%' -Raw | ConvertFrom-Json; $config.backend.database.type = 'mysql'; $json = $config | ConvertTo-Json -Depth 10; [System.IO.File]::WriteAllText('%CONFIG_FILE%', $json, [System.Text.UTF8Encoding]::new($false))" - echo %GREEN%[OK]%NC% 資料庫類型已設定為: MySQL (雲端模式) + echo %GREEN%[OK]%NC% 資料庫類型已設定為: MySQL ^(雲端模式^) ) if errorlevel 1 (