-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathelectron-builder.config.cjs
More file actions
75 lines (65 loc) · 1.5 KB
/
electron-builder.config.cjs
File metadata and controls
75 lines (65 loc) · 1.5 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
/**
* electron-builder configuration
*
* Builds .dmg (macOS), .exe/NSIS (Windows), .AppImage + .deb (Linux)
* Assets are bundled from electron-vite's `out/` directory.
*/
/** @type {import('electron-builder').Configuration} */
module.exports = {
appId: 'com.doraboss.doraemon',
productName: 'Doraemon',
copyright: 'Copyright © 2026 AlleyBo55',
directories: {
output: 'dist',
buildResources: 'build',
},
files: [
'out/**/*',
'assets/**/*',
'browser-extension/**/*',
'package.json',
],
extraResources: [
{ from: 'assets', to: 'assets' },
{ from: 'browser-extension', to: 'browser-extension' },
{ from: '.env', to: '.env' },
],
mac: {
target: [
{ target: 'dmg', arch: ['arm64'] },
],
icon: 'build/icon.png',
category: 'public.app-category.utilities',
darkModeSupport: true,
hardenedRuntime: true,
gatekeeperAssess: false,
},
dmg: {
contents: [
{ x: 130, y: 220 },
{ x: 410, y: 220, type: 'link', path: '/Applications' },
],
window: { width: 540, height: 380 },
},
win: {
target: [
{ target: 'nsis', arch: ['x64'] },
],
icon: 'build/icon.ico',
},
nsis: {
oneClick: true,
perMachine: false,
allowToChangeInstallationDirectory: false,
deleteAppDataOnUninstall: false,
},
linux: {
target: [
{ target: 'AppImage', arch: ['x64'] },
{ target: 'deb', arch: ['x64'] },
],
icon: 'build/icons',
category: 'Utility',
},
publish: null,
};