-
Notifications
You must be signed in to change notification settings - Fork 1
/
forge.config.js
91 lines (87 loc) · 2.23 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
const appBundleId = 'com.cellosoft.graphql98';
function getOsxNotarizeConfig() {
if (process.platform !== 'darwin' || !process.env.CI) {
return undefined;
}
if (!process.env.APPLE_ID || !process.env.APPLE_ID_PASSWORD) {
throw new Error(
'Should be notarizing, but environment variables APPLE_ID or APPLE_ID_PASSWORD are missing!',
);
}
return {
appBundleId,
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_ID_PASSWORD,
ascProvider: '72679R6V8X',
};
}
module.exports = {
packagerConfig: {
name: 'GraphQL 98',
executableName: 'graphql-98',
asar: process.env.NODE_ENV === 'production' && process.env.ASAR !== 'false',
icon: 'images/icon',
appBundleId: appBundleId,
appCategoryType: 'public.app-category.developer-tools',
darwinDarkModeSupport: true,
win32metadata: {
CompanyName: 'Marcello Bastea-Forte',
OriginalFilename: 'GraphQL 98',
},
osxSign: {
identity: 'Developer ID Application: Marcello Bastéa-Forte (72679R6V8X)',
hardenedRuntime: true,
'gatekeeper-assess': false,
entitlements: 'config/entitlements.plist',
'entitlements-inherit': 'config/entitlements.plist',
'signature-flags': 'library',
},
osxNotarize: getOsxNotarizeConfig(),
},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {
name: 'GraphQL98',
exe: 'graphql-98.exe',
},
platforms: ['win32'],
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin'],
},
],
plugins: [
[
'@electron-forge/plugin-webpack',
{
mainConfig: './webpack.main.config.js',
renderer: {
config: './webpack.renderer.config.js',
entryPoints: [
{
html: './src/renderer/index.html',
js: './src/renderer/index.tsx',
preload: {
js: './src/preload/preload.ts',
},
name: 'app',
},
],
},
},
],
],
publishers: [
{
name: '@electron-forge/publisher-github',
config: {
repository: {
owner: 'marcello3d',
name: 'graphql-98',
},
},
},
],
};