-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathforge.config.js
57 lines (57 loc) · 1.32 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
const { version } = require('./package.json');
const path = require('node:path');
module.exports = {
packagerConfig: {
name: 'Easy Share',
executableName: 'easy-share',
asar: true,
ignore: [
"^/node_modules",
"^/src",
"forge.config.js",
"tsconfig.json",
"LICENSE",
".gitignore",
".vscode",
],
icon: 'static/logo'
},
rebuildConfig: {},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: (arch) => ({
name: 'easy-share',
authors: 'zkeyoung',
exe: 'easy-share.exe',
iconUrl:
'https://raw.githubusercontent.com/zkeyoung/static/main/Easy-Share/logo.ico',
noMsi: true,
setupExe: `easy-share-${version}-win32-${arch}-setup.exe`,
setupIcon: path.resolve(__dirname, 'static', 'logo.ico'),
}),
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin'],
},
{
name: '@electron-forge/maker-deb',
platforms: ['linux'],
config: {
icon: {
scalable: path.resolve(__dirname, 'static', 'logo.svg'),
},
},
},
{
name: '@electron-forge/maker-rpm',
platforms: ['linux'],
config: {
icon: {
scalable: path.resolve(__dirname, 'static', 'logo.svg'),
},
},
},
],
};