-
Notifications
You must be signed in to change notification settings - Fork 20
/
forge.config.js
115 lines (114 loc) · 3 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
const appleId = process.env.APPLE_ID;
const appleIdPassword = process.env.APPLE_APP_PASSWORD;
const teamId = process.env.APPLE_TEAM_ID;
const fs = require('fs');
const path = require('path');
module.exports = {
"electronRebuildConfig": {
"onlyModules": []
},
hooks: {
packageAfterPrune: async (forgeConfig, buildPath, electronVersion, platform, arch) => {
if (platform === 'darwin') {
try {
fs.unlinkSync(path.join(buildPath, 'node_modules/better-sqlite3/build/node_gyp_bins/python3'))
} catch (e) {
console.log(e);
}
try {
fs.unlinkSync(path.join(buildPath, 'node_modules/lzma-native/build/node_gyp_bins/python3'))
} catch (e) {
console.log(e);
}
}
}
},
plugins: [
{
"name": "@electron-forge/plugin-auto-unpack-natives",
"config": {}
}
],
"packagerConfig": {
"plugins": [
{
"name": "@electron-forge/plugin-auto-unpack-natives",
"config": {}
}
],
"osxSign": {
"identity": "Developer ID Application: Erik Larson (2H2K93RATM)",
"hardened-runtime": true,
"entitlements": "entitlements.plist",
"entitlements-inherit": "entitlements.plist",
"signature-flags": "library"
},
osxNotarize: {
appleId,
appleIdPassword,
teamId: teamId
},
"icon": "logo.icns",
"asar": true,
"arch": [
"x64",
],
"extraResource": [
"./public"
]
},
"publish": [
{
"provider": "github",
"releaseType": "draft"
}
],
"makers": [
{
"name": "@electron-forge/maker-squirrel",
"config": {
"name": "unbox",
"platforms": [
"win32"
]
}
},
{
"name": "@electron-forge/maker-zip",
"platforms": [
"win32",
"linux"
]
},
{
"name": "@electron-forge/maker-deb",
"config": {
"options": {
"name": "unbox",
"productName": "Unbox"
}
}
},
{
"name": "@electron-forge/maker-rpm",
"config": {
"options": {
"name": "unbox",
"productName": "Unbox"
}
}
},
{
"name": "@electron-forge/maker-dmg",
"config": {
"name": "unbox",
"arch": [
"universal",
],
"platforms": [
"darwin"
]
}
}
]
}