-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelectron-builder.config.js
97 lines (96 loc) · 2.29 KB
/
electron-builder.config.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
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
const { name, author } = require('./package.json')
const target = `${name}.asar`
/* eslint-disable no-template-curly-in-string */
/**
* @type {import('electron-builder').Configuration}
* @see https://www.electron.build/configuration/configuration
*/
module.exports = {
npmRebuild: false,
appId: 'ElectronMultiAsar',
productName: name,
files: [
'app.js',
'!**/{.eslintignore,.eslintrc.cjs,.editorconfig,.prettierignore,.prettierrc.yaml,dev-app-update.yml,LICENSE,.nvmrc,.npmrc}',
'!**/{tsconfig.json,tsconfig.node.json,tsconfig.web.json}',
'!**/*debug*.*',
'!**/*.{md,zip,map}',
'!**/*.{c,cpp,h,hpp,cc,hh,cxx,hxx,gypi,gyp,sh}',
'!**/.{github,vscode}',
'!node_modules/**/better-sqlite3/deps/**',
],
asarUnpack: [
'**/*.{node,dll}',
],
directories: {
output: 'release',
},
extraResources: [
{ from: `release/${target}`, to: target },
],
win: {
target: [
// {
// target: 'nsis',
// arch: ['x64', 'ia32'],
// },
// 'nsis',
'7z',
],
publisherName: author,
},
nsis: {
artifactName: '${productName}-${os}-${version}-${arch}-Setup.${ext}',
shortcutName: '${productName}',
uninstallDisplayName: '${productName}',
createDesktopShortcut: true,
oneClick: true,
},
mac: {
// entitlementsInherit: 'build/entitlements.mac.plist',
target: [
{
target: 'dmg',
// arch: ['x64', 'arm64', 'universal'],
arch: ['universal'],
},
],
artifactName: '${productName}-${os}-${version}-${arch}.${ext}',
category: 'public.app-category.music',
darkModeSupport: true,
identity: null,
},
linux: {
target: [
{
target: 'AppImage',
arch: ['x64'],
},
// {
// target: 'tar.gz',
// arch: ['x64', 'arm64'],
// },
{
target: 'deb',
// arch: ['x64', 'armv7l', 'arm64'],
arch: ['x64'],
},
// {
// target: 'rpm',
// arch: ['x64'],
// },
// {
// target: 'snap',
// arch: ['x64'],
// },
// {
// target: 'pacman',
// arch: ['x64'],
// },
],
category: 'Music',
maintainer: 'subframe7536',
artifactName: '${productName}-${os}-${version}-${arch}.${ext}',
},
publish: null,
}