-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuilder.ts
38 lines (37 loc) · 863 Bytes
/
builder.ts
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
import { build } from 'electron-builder'
build({
config: {
appId: 'com.neac.knead',
productName: 'Knead',
copyright: 'Copyright © 2025 ${author}',
artifactName: '${productName}-${version}-${arch}.${ext}',
files: ['dist/**/*'],
directories: {
output: 'release',
},
icon: 'build/icon.png',
nsis: {
oneClick: false,
allowToChangeInstallationDirectory: true,
},
win: {
target: ['nsis', 'zip'],
publisherName: 'NeAc',
icon: 'build/icon.png',
},
mac: {
icon: 'build/icon.icns',
target: {
target: 'default',
arch: 'universal',
},
// コード署名しない場合は null の設定が必須
identity: null,
},
linux: {
icon: 'build/icon.icns',
target: ['AppImage'],
category: 'Development',
},
},
})