-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathelectron-builder.yml
More file actions
119 lines (118 loc) · 3.06 KB
/
electron-builder.yml
File metadata and controls
119 lines (118 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
appId: cc.echoplayer.app
productName: EchoPlayer
electronLanguages:
- zh-CN
- zh-TW
- en-US
- ja # macOS/linux/win
- ru # macOS/linux/win
- zh_CN # for macOS
- zh_TW # for macOS
- en # for macOS
directories:
buildResources: build
protocols:
- name: EchoPlayer
schemes:
- echoplayer
icon: icons
files:
- from: .
filter:
- 'out/**' # 渲染进程打包后文件
- 'resources/**' # 运行时资源(如果需要)
- 'package.json'
- '!**/*.map'
asarUnpack:
- resources/**
- '**/*.{metal,exp,lib}'
copyright: Copyright © 2025 EchoPlayer
win:
executableName: EchoPlayer
icon: icons/win/icon.ico
artifactName: ${productName}-${version}-${arch}-setup.${ext}
target:
- target: nsis
arch:
- x64
- arm64
- target: portable
arch:
- x64
- arm64
signtoolOptions:
sign: scripts/win-sign.js
verifyUpdateCodeSignature: false
nsis:
artifactName: ${productName}-${version}-${arch}-setup.${ext}
shortcutName: ${productName}
uninstallDisplayName: ${productName}
createDesktopShortcut: always
allowToChangeInstallationDirectory: true
oneClick: false
include: build/nsis-installer.nsh
buildUniversalInstaller: false
portable:
artifactName: ${productName}-${version}-${arch}-portable.${ext}
buildUniversalInstaller: false
mac:
entitlementsInherit: build/entitlements.mac.plist
icon: icons/mac/icon.icns
artifactName: ${productName}-${version}-${arch}.${ext}
target:
- target: dmg
arch:
- x64
- arm64
- target: zip
arch:
- x64
- arm64
category: public.app-category.education
darkModeSupport: true
extendInfo:
- NSCameraUsageDescription: Application requests access to the device's camera.
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
notarize: true
hardenedRuntime: true
gatekeeperAssess: false
dmg:
artifactName: ${productName}-${version}-${arch}.${ext}
linux:
target:
- target: AppImage
arch:
- x64
- arm64
- target: deb
arch:
- x64
- arm64
maintainer: mkdir700
category: Education
icon: icons/png
artifactName: ${productName}-${version}-${arch}.${ext}
desktop:
entry:
StartupWMClass: EchoPlayer
mimeTypes:
- x-scheme-handler/echoplayer
publish:
provider: github
owner: mkdir700
repo: EchoPlayer
vPrefixedTagName: true
releaseType: draft
publishAutoUpdate: true
# 自动检测是否为预发布版本
# alpha, beta 版本将被标记为 prerelease
# stable 版本将被标记为正式发布
# 设置更新渠道,通过环境变量 ELECTRON_BUILDER_CHANNEL 控制
channel: ${env.ELECTRON_BUILDER_CHANNEL}
electronDownload:
mirror: https://npmmirror.com/mirrors/electron/
releaseInfo:
releaseName: EchoPlayer v${version}
releaseNotesFile: 'build/release-notes.md'