Skip to content

Commit a8d50dd

Browse files
committed
fix: ds
1 parent 7345c16 commit a8d50dd

File tree

1 file changed

+31
-14
lines changed

1 file changed

+31
-14
lines changed

electron-builder.yml

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
appId: org.dszdev.examshowboard-cat
2-
productName: ExamShowboard-Car
1+
appId: org.dszdev.examaware-car
2+
productName: ExamAware-Car
33
directories:
44
buildResources: build
55
files:
@@ -11,35 +11,52 @@ files:
1111
- '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
1212
asarUnpack:
1313
- resources/**
14+
15+
# Windows 配置
1416
win:
15-
executableName: examshowboard-car
17+
executableName: examaware-car # 全小写避免路径问题
18+
icon: build/icon.ico
19+
20+
# NSIS 配置
1621
nsis:
1722
artifactName: ${name}-${version}-setup.${ext}
1823
shortcutName: ${productName}
1924
uninstallDisplayName: ${productName}
2025
createDesktopShortcut: always
21-
installerIcon: 'build/icon.ico'
22-
uninstallerIcon: 'build/icon.ico'
26+
installerIcon: build/icon.ico
27+
uninstallerIcon: build/icon.ico
28+
29+
# Mac 配置
2330
mac:
31+
category: public.app-category.utilities
2432
entitlementsInherit: build/entitlements.mac.plist
33+
executableName: ExamAware-Car # 显式指定可执行文件名
2534
extendInfo:
26-
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
27-
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
28-
notarize: false
29-
dmg:
30-
artifactName: ${name}-${version}.${ext}
35+
NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
36+
NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
37+
icon: build/icon.icns # 确保存在 512x512的icns文件
38+
39+
# Linux 配置
3140
linux:
3241
target:
3342
- AppImage
3443
- snap
3544
- deb
3645
maintainer: electronjs.org
3746
category: Utility
38-
appImage:
39-
artifactName: ${name}-${version}.${ext}
47+
48+
# 通用配置
49+
electronDownload:
50+
mirror: https://npmmirror.com/mirrors/electron/
4051
npmRebuild: false
52+
53+
# 发布配置
4154
publish:
4255
provider: generic
4356
url: https://example.com/auto-updates
44-
electronDownload:
45-
mirror: https://npmmirror.com/mirrors/electron/
57+
58+
# 构建产物名称统一
59+
dmg:
60+
artifactName: ${productName}-${version}.${ext}
61+
appImage:
62+
artifactName: ${productName}-${version}.${ext}

0 commit comments

Comments
 (0)