From face17971e472e26a46718dcd22ba3ca74d6f2de Mon Sep 17 00:00:00 2001 From: coolxitech Date: Sun, 14 Dec 2025 14:03:37 +0800 Subject: [PATCH] =?UTF-8?q?feat(electron):=20=E9=85=8D=E7=BD=AE=E5=A4=9A?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E6=9E=84=E5=BB=BA=E4=BA=A7=E7=89=A9=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为 Windows 平台设置安装包文件名格式 - 添加 macOS 平台支持并配置产物命名规则 - 配置 Linux 平台构建选项及文件命名方式 - 统一各平台构建产物的命名变量使用 - 确保所有目标平台的 artifactName 格式一致 - 更新 electron-builder 配置以支持跨平台部署 --- package.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index adeba20..4fd67fb 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,16 @@ "win": { "target": "nsis", "icon": "public/favicon.ico", - "verifyUpdateCodeSignature": false + "verifyUpdateCodeSignature": false, + "artifactName": "${productName}-Setup.${ext}" + }, + "mac": { + "target": ["dmg", "zip"], + "artifactName": "${productName}-mac.${ext}" + }, + "linux": { + "target": ["AppImage", "deb"], + "artifactName": "${productName}-linux.${ext}" } } }