-
Notifications
You must be signed in to change notification settings - Fork 3
/
forge.config.js
75 lines (71 loc) · 2.01 KB
/
forge.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
const path = require('path');
const packageJson = require('./package.json');
const {version} = packageJson;
const iconDir = path.resolve(__dirname, 'icons');
const config = {
packagerConfig: {
name: "Zpl Printer",
executableName: 'zpl-printer',
icon: path.resolve(__dirname, 'icons', 'icon'),
},
makers: [
{
name: "@rabbitholesyndrome/electron-forge-maker-portable",
platforms: ['win32'],
config: {
portable: {
artifactName: "${name}-portable-${version}.exe"
}
}
},
{
name: "@electron-forge/maker-squirrel",
platforms: ['win32'],
config: (arch) => ({
name: "zpl-printer",
exe: 'zpl-printer.exe',
iconUrl: "https://github.com/erikn69/ZplPrinter/blob/master/icons/icon.ico?raw=true",
noMsi: true,
setupExe: `zpl-printer-${version}-win32-${arch}-setup.exe`,
setupIcon: path.resolve(iconDir, "icon.ico"),
})
},
{
name: "@electron-forge/maker-zip",
platforms: [
"darwin",
"linux"
]
},
{
name: "@electron-forge/maker-deb",
config: {
icon: {
scalable: path.resolve(iconDir, 'icon.svg')
}
}
},
{
name: "@electron-forge/maker-rpm",
config: {
icon: {
scalable: path.resolve(iconDir, 'icon.svg')
}
}
}
],
publishers: [
{
name: "@electron-forge/publisher-github",
config: {
repository: {
owner: "erikn69",
name: "ZplPrinter"
},
prerelease: false,
draft: true
}
}
]
};
module.exports = config;