-
Notifications
You must be signed in to change notification settings - Fork 8
/
forge.config.js
59 lines (59 loc) · 1.44 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
module.exports = {
packagerConfig: {
appVersion: "1.4.0",
name: "Sharing GUI",
appCopyright: "yuanx([email protected])",
icon: "./assets/logo-bg-512x512",
win32metadata: {
ProductName: "Sharing GUI",
CompanyName: "yuanx.me",
FileDescription: "Sharing GUI for windows",
},
asar: true,
ignore: [
"\/sharing\-pkg\/easy\-sharing\-linux",
"\/sharing\-pkg\/easy\-sharing\-win\.exe",
],
// ignore: function ignore(path) {
// // console.log("ignore/path", path, process.platform, process);
// let ignoreList = [
// "/node_modules/.bin",
// "/node_modules/electron",
// "/node_modules/electron-prebuilt",
// "/node_modules/electron-prebuilt-compile",
// "/.git",
// ];
// for (let i = 0; i < ignoreList.length; i++) {
// const element = ignoreList[i];
// if (path.indexOf(element) === 0) {
// return true;
// }
// }
// return false;
// },
// platforms: ["darwin"],
},
rebuildConfig: {},
makers: [
{
name: "@electron-forge/maker-squirrel",
config: {},
},
{
name: "@electron-forge/maker-zip",
platforms: ["darwin"],
},
{
name: "@electron-forge/maker-deb",
config: {
options: {
icon: "/assets/logo-bg-512x512",
},
},
},
{
name: "@electron-forge/maker-rpm",
config: {},
},
],
};