fix: Remove missing icon references and fix batch syntax

- Remove icon references from package.json (assets folder is empty)
- Fix batch script syntax by replacing if/else blocks with goto labels
- Remove parentheses and colons that conflict with batch syntax

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
egg
2025-12-18 08:37:08 +08:00
parent 56cf0c072c
commit a9bd6b34f1
2 changed files with 22 additions and 20 deletions

View File

@@ -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}",

View File

@@ -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