-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathforge.config.js
84 lines (83 loc) · 2.24 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
const githubTarget =
process.env.NODE_ENV && process.env.NODE_ENV === 'production'
? 'nokori/nokori-desktop'
: 'nokori/nokori-qa-desktop'
module.exports = {
packagerConfig: {
name: 'nokori',
platform: 'darwin',
asar: true,
icon: './electron/icons/nokori-icon',
osxSign: {
optionsForFile: (fp) => {
// Here, we keep it simple and return a single entitlements.plist file.
// You can use this callback to map different sets of entitlements
// to specific files in your packaged app.
return {
entitlements: './electron/makers/entitlements.plist'
}
}
},
osxNotarize: {
teamId: '5Y883P6DH9',
tool: 'notarytool',
appleId: 'dev@nokori.com',
appleIdPassword: 'rgbe-cysv-sbrr-zgus'
}
},
makers: [
{
name: '@electron-forge/maker-dmg',
config: {
// background: './assets/dmg-background.png',
format: 'ULFO',
icon: './electron/icons/nokori-icon'
},
packagerConfig: {
name: 'nokori',
platform: 'darwin',
asar: true,
icon: './electron/icons/nokori-icon',
osxSign: {
optionsForFile: (fp) => {
// Here, we keep it simple and return a single entitlements.plist file.
// You can use this callback to map different sets of entitlements
// to specific files in your packaged app.
return {
entitlements: './electron/makers/entitlements.plist'
}
}
},
osxNotarize: {
teamId: '5Y883P6DH9',
tool: 'notarytool',
appleId: 'dev@nokori.com',
appleIdPassword: 'rgbe-cysv-sbrr-zgus'
}
}
}
// {
// name: '@electron-forge/maker-zip',
// platforms: ['darwin'],
// config: {
// tagPrefix: 'v',
// hardenedRuntime: true,
// gatekeeperAssess: false
// }
// }
],
publishers: [
{
name: '@electron-forge/publisher-github',
config: {
repository: {
owner: 'nokori',
name: 'nokori-desktop'
},
authToken: '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',
prerelease: true
// tagPrefix: ''
}
}
]
}