-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathelectron-builder.yml
More file actions
137 lines (129 loc) · 3.46 KB
/
electron-builder.yml
File metadata and controls
137 lines (129 loc) · 3.46 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
appId: com.musicbox.app
productName: MusicBox
copyright: Copyright © 2025-2026 asxez MusicBox
directories:
output: dist
buildResources: build
files:
- dist/main/**/*
- src/renderer/public/**/*
- node_modules/**/*
- "!node_modules/**/{CHANGELOG.md,README.md,readme.md,readme.txt,author,authors,contributors,copying,copyright,*license*,licence*,notice,Notice}"
- "!node_modules/*/{test,__tests__,tests,powered-test,example,examples}"
- "!node_modules/**/*.d.ts"
- "!node_modules/.bin"
- "!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}"
- "!.editorconfig"
- "!**/._*"
- "!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}"
- "!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}"
- "!**/{appveyor.yml,.travis.yml,circle.yml}"
- "!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}"
- "!**/requirements.txt"
- "!**/pyinstaller.spec"
- "!**/nuitka.config"
- "!**/build/pyinstaller/**/*"
- "!**/dist/python-modules/**/*"
- "!src/main/metadata_editor*"
asarUnpack:
- "dist/main/metadata_editor*"
- "dist/main/NativeAudio.node"
extraResources:
- from: "dist/main/metadata_editor.exe"
to: "metadata_editor.exe"
filter: ["**/*"]
- from: "dist/main/metadata_editor"
to: "metadata_editor"
filter: ["**/*"]
- from: "dist/main/NativeAudio.node"
to: "NativeAudio.node"
filter: ["**/*"]
# macOS 配置
mac:
category: public.app-category.music
icon: build/icons/icon.icns
target:
- target: dmg
arch:
- x64
- arm64
- target: zip
arch:
- x64
- arm64
# 代码签名配置(需要开发者证书)
# identity: "Developer ID Application: Your Name (TEAM_ID)"
# hardenedRuntime: true
# gatekeeperAssess: false
# entitlements: build/entitlements.mac.plist
# entitlementsInherit: build/entitlements.mac.plist
# Windows 配置
win:
icon: build/icons/icon.ico
target:
- target: nsis
arch:
- x64
- arm64
- target: portable
arch:
- x64
- arm64
# 代码签名配置(需要证书)
# certificateFile: path/to/certificate.p12
# certificatePassword: ${env.WIN_CSC_KEY_PASSWORD}
# signingHashAlgorithms: ['sha256']
# signAndEditExecutable: true
# Linux 配置
linux:
icon: build/icons/
target:
- target: AppImage
arch:
- x64
- target: deb
arch:
- x64
- target: rpm
arch:
- x64
- target: tar.gz
arch:
- x64
category: AudioVideo
synopsis: "本地音乐播放器"
description: "一款高颜值、插件化的本地音乐播放器"
# 添加桌面文件配置
desktop:
Name: MusicBox
Comment: 本地音乐播放器
Categories: AudioVideo;Audio;Player;Plugin;Pluggable;
# NSIS Windows 安装程序配置
nsis:
artifactName: ${productName}-setup-${version}.${ext}
shortcutName: ${productName}
uninstallDisplayName: ${productName}
createDesktopShortcut: always
installerIcon: build/icons/icon.ico
uninstallerIcon: build/icons/icon.ico
allowToChangeInstallationDirectory: true
oneClick: false
# DMG macOS 安装程序配置
dmg:
artifactName: ${productName}-${version}-${arch}.${ext}
background: build/icons/icon.icns
iconSize: 100
iconTextSize: 12
window:
width: 540
height: 380
contents:
- x: 130
y: 220
- x: 410
y: 220
type: link
path: /Applications
# AppImage Linux 配置
appImage:
artifactName: ${productName}-${version}-${arch}.${ext}