-
Notifications
You must be signed in to change notification settings - Fork 1
/
forge.config.js
92 lines (89 loc) · 1.98 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import * as path from "path";
import * as fs from "fs";
export default {
packagerConfig: {
asar: true,
icon: 'desktop/resources/quarky'
},
rebuildConfig: {},
hooks: {
packageAfterPrune: (_config, buildPath) => {
// https://stackoverflow.com/a/76816826
const bufferutilGyp = path.join(
buildPath,
'node_modules',
'bufferutil',
'build',
'node_gyp_bins'
);
const utf8ValidateGyp = path.join(
buildPath,
'node_modules',
'utf-8-validate',
'build',
'node_gyp_bins'
);
fs.rmSync(bufferutilGyp, {recursive: true, force: true});
fs.rmSync(utf8ValidateGyp, {recursive: true, force: true});
}
},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {
iconUrl: 'https://quarky.nineplus.sh/favicon.ico',
setupIcon: 'desktop/resources/quarkysetup.ico'
},
},
{
name: '@electron-forge/maker-zip',
platforms: ['linux'],
},
{
name: '@electron-forge/maker-deb',
config: {
options: {
icon: 'desktop/resources/quarky.png',
categories: ["Network"],
homepage: 'https://www.nineplus.sh/quarky',
priority: 'optional',
section: 'web'
}
},
},
{
name: '@electron-forge/maker-rpm',
config: {
options: {
icon: 'desktop/resources/quarky.png',
categories: ["Network"],
homepage: 'https://www.nineplus.sh/quarky'
}
},
},
{
name: '@electron-forge/maker-dmg',
config: {
format: 'ULFO'
},
},
],
plugins: [
{
name: '@electron-forge/plugin-auto-unpack-natives',
config: {},
},
],
publishers: [
{
name: '@electron-forge/publisher-github',
config: {
repository: {
owner: 'meower-holdings',
name: 'quarky'
},
draft: false
}
}
]
};