-
Notifications
You must be signed in to change notification settings - Fork 0
/
forge.config.js
42 lines (41 loc) · 967 Bytes
/
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
require('dotenv').config();
module.exports = {
// https://www.electronforge.io/guides/code-signing/code-signing-macos
// https://stackoverflow.com/questions/46480682/how-to-sign-electron-app-using-electron-forge
packagerConfig: {
ignore: [
'/_tanner_misc',
'/images',
'\.*\.code-',
'\.editorconfig',
'\.env',
'\.env',
'\.gitignore',
'\.nvmrc',
'example.html',
],
// https://github.com/electron/osx-sign
osxSign: {
identity: process.env.APPLE_IDENTITY,
entitlements: true,
hardenedRuntime: true,
// https://github.com/electron/notarize/issues/54#issuecomment-704625356
'gatekeeper-assess': false,
},
// https://github.com/electron/notarize
osxNotarize: {
tool: 'notarytool',
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_PASSWORD,
teamId: process.env.APPLE_TEAM_ID,
},
},
makers: [
{
name: '@electron-forge/maker-zip',
platforms: [
'darwin',
],
},
],
};