-
Notifications
You must be signed in to change notification settings - Fork 7
/
forge.config.js
57 lines (51 loc) · 1.15 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 process = require('process');
const isWin = process.platform === 'win32';
const isDarwin = process.platform === 'darwin';
const packagerConfig = {
electronZipDir: process.env.electron_zip_dir
};
const makers = [
{
name: '@electron-forge/maker-deb',
},
{
name: '@electron-forge/maker-rpm',
},
{
name: '@electron-forge/maker-zip',
},
{
name: '@electron-forge/maker-squirrel',
config: {
authors: "Matrix AI"
}
}
];
if (isWin) {
packagerConfig['icon'] = 'icons/icons/win/icon.ico';
}
if (isDarwin) {
packagerConfig['osxSign'] = {
identity: process.env.OSX_IDENTITY,
'hardened-runtime': true,
entitlements: 'entitlements.plist',
'entitlements-inherit': 'entitlements.plist',
'signature-flags': 'library'
};
packagerConfig['osxNotarize'] = {
appleId: process.env.OSX_APPLE_ID,
appleIdPassword: process.env.OSX_APPLE_ID_PASSWORD
};
packagerConfig['icon'] = 'icons/icons/mac/icon.icns';
makers.push({
name: '@electron-forge/maker-dmg',
config: {
background: './static/logo-big.png',
format: 'ULFO'
}
});
}
module.exports = {
packagerConfig,
makers
};