-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathelectron-builder.config.js
More file actions
65 lines (54 loc) · 1.27 KB
/
electron-builder.config.js
File metadata and controls
65 lines (54 loc) · 1.27 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
/**
* electron-builder configuration
* @see https://www.electron.build/configuration/configuration
*/
const os = require('os');
const platform = os.platform();
const arch = os.arch();
module.exports = {
productName: 'Algo Bootstrap',
appId: 'org.algoux.algo-bootstrap',
copyright: 'Copyright © 2019-present algoUX',
mac: {
category: 'public.app-category.developer-tools',
identity: null,
target: ['dmg'],
icon: arch === 'arm64' ? 'build/icon.icon' : 'build/icon.icns',
},
dmg: {
artifactName: 'AlgoBootstrap-mac-${arch}-${version}.${ext}',
title: '${productName} ${version}',
icon: 'build/dmg.icns',
background: 'build/dmg-background.tiff',
},
win: {
target: ['nsis'],
},
nsis: {
oneClick: false,
allowToChangeInstallationDirectory: true,
artifactName: 'AlgoBootstrap-windows-${arch}-${version}.${ext}',
},
afterPack: 'scripts/after-pack.js',
directories: {
output: 'release',
},
asar: true,
extraResources: [
{
from: 'dist/bin/abc',
to: 'app/bin/abc',
filter: ['**/*'],
},
{
from: 'dist/bin/abc.bat',
to: 'app/bin/abc.bat',
filter: ['**/*'],
},
{
from: 'dist/bin/abc.js',
to: 'app/bin/abc.js',
filter: ['**/*'],
},
],
};