-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.js
38 lines (37 loc) · 898 Bytes
/
build.js
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
// Inspired by https://zenn.dev/sprout2000/books/3691a679478de2/viewer/13600
//
import { build } from 'electron-builder';
build({
config: {
productName: 'Claude Token Counter',
artifactName: '${productName}-${version}-${platform}-${arch}.${ext}',
copyright: 'Copyright (c) 2024 HeavenOSK',
files: ['main', 'renderer/out'],
directories: {
output: 'dist',
buildResources: 'assets',
},
publish: {
provider: 'github',
releaseType: 'draft',
},
mac: {
icon: 'assets/mac.icns',
category: 'public.app-category.developer-tools',
target: {
target: 'dmg',
arch: ['x64', 'arm64'],
},
identity: null,
},
win: {
icon: 'assets/win32.ico',
target: ['zip'],
},
linux: {
icon: 'assets/linux.icns',
target: ['AppImage'],
category: 'Development',
},
},
});