diff --git a/client/package.json b/client/package.json index 957e0ac..561a049 100644 --- a/client/package.json +++ b/client/package.json @@ -50,15 +50,12 @@ "arch": ["x64"] } ], - "icon": "assets/icon.ico", "signAndEditExecutable": false }, "nsis": { "oneClick": false, "allowToChangeInstallationDirectory": true, "artifactName": "${productName}-${version}-setup.${ext}", - "installerIcon": "assets/icon.ico", - "uninstallerIcon": "assets/icon.ico", "deleteAppDataOnUninstall": false }, "mac": { @@ -67,8 +64,7 @@ "target": "dmg", "arch": ["x64", "arm64"] } - ], - "icon": "assets/icon.icns" + ] }, "linux": { "target": [ @@ -76,8 +72,7 @@ "target": "AppImage", "arch": ["x64"] } - ], - "icon": "assets/icon.png" + ] }, "portable": { "artifactName": "${productName}-${version}-portable.${ext}", diff --git a/scripts/build-client.bat b/scripts/build-client.bat index db844fd..2ac5312 100644 --- a/scripts/build-client.bat +++ b/scripts/build-client.bat @@ -473,19 +473,26 @@ dir /b "%BUILD_DIR%" echo. echo %GREEN%[OK]%NC% 打包完成! echo. -if /i "%BUILD_TARGET%"=="nsis" ( - echo Windows 使用說明 (NSIS 安裝檔): - echo 1. 找到 build\ 中的 *-setup.exe 檔案 - echo 2. 執行安裝檔,選擇安裝目錄 - echo 3. 安裝後從開始選單或桌面捷徑啟動 - echo 4. 資料會持久保存在安裝目錄中 -) else ( - echo Windows 使用說明 (Portable): - echo 1. 找到 build\ 中的 *-portable.exe 檔案 - echo 2. 直接執行,無需安裝 - echo 3. 注意: 關閉程式後臨時檔案會清空 - echo 4. SQLite 資料庫保存在 %%APPDATA%%\Meeting-Assistant -) +if /i "%BUILD_TARGET%"=="nsis" goto :show_nsis_help +goto :show_portable_help + +:show_nsis_help +echo Windows 使用說明 - NSIS 安裝檔 +echo 1. 找到 build\ 中的 *-setup.exe 檔案 +echo 2. 執行安裝檔,選擇安裝目錄 +echo 3. 安裝後從開始選單或桌面捷徑啟動 +echo 4. 資料會持久保存在安裝目錄中 +goto :end_help + +:show_portable_help +echo Windows 使用說明 - Portable +echo 1. 找到 build\ 中的 *-portable.exe 檔案 +echo 2. 直接執行,無需安裝 +echo 3. 注意 - 關閉程式後臨時檔案會清空 +echo 4. SQLite 資料庫保存在 %%APPDATA%%\Meeting-Assistant +goto :end_help + +:end_help echo. goto :eof