fix: Windows 桌面应用打包问题修复
- 删除通用 desktop target,重命名 platform targets 为简短形式 (desktop-mac/win/linux)
- 构建产物文件名统一为 nex-{os}-{arch}[.exe] 格式
- Windows 托盘图标使用 .ico 格式(运行时按平台选择)
- Windows 原生对话框使用 user32.MessageBoxW 替代 msg * 命令
- 更新 README.md 和 package-macos.sh 中的引用
- 添加单元测试覆盖 MessageBoxW 封装和图标选择逻辑
- 同步更新 desktop-app spec 规范文档
This commit is contained in:
@@ -13,12 +13,12 @@ echo "打包 macOS .app..."
|
||||
mkdir -p "${BUILD_DIR}/${APP_NAME}.app/Contents/MacOS"
|
||||
mkdir -p "${BUILD_DIR}/${APP_NAME}.app/Contents/Resources"
|
||||
|
||||
if [ -f "${BUILD_DIR}/nex-darwin-arm64" ]; then
|
||||
cp "${BUILD_DIR}/nex-darwin-arm64" "${BUILD_DIR}/${APP_NAME}.app/Contents/MacOS/nex"
|
||||
elif [ -f "${BUILD_DIR}/nex-darwin-amd64" ]; then
|
||||
cp "${BUILD_DIR}/nex-darwin-amd64" "${BUILD_DIR}/${APP_NAME}.app/Contents/MacOS/nex"
|
||||
if [ -f "${BUILD_DIR}/nex-mac-arm64" ]; then
|
||||
cp "${BUILD_DIR}/nex-mac-arm64" "${BUILD_DIR}/${APP_NAME}.app/Contents/MacOS/nex"
|
||||
elif [ -f "${BUILD_DIR}/nex-mac-amd64" ]; then
|
||||
cp "${BUILD_DIR}/nex-mac-amd64" "${BUILD_DIR}/${APP_NAME}.app/Contents/MacOS/nex"
|
||||
else
|
||||
echo "错误: 未找到 macOS 二进制文件,请先运行 make desktop-darwin"
|
||||
echo "错误: 未找到 macOS 二进制文件,请先运行 make desktop-mac"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user