-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforge.config.example.js
141 lines (140 loc) · 4.46 KB
/
forge.config.example.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
const { FusesPlugin } = require('@electron-forge/plugin-fuses');
const { FuseV1Options, FuseVersion } = require('@electron/fuses');
module.exports = {
packagerConfig: {
asar: true,
icon: './src/render/icons/icon',
osxSign: {
optionsForFile: (filePath) => {
return {
entitlements: 'faircopy_scripts/entitlements.mac.plist'
};
}
},
extraResource: [
'src/default-project-css.css',
'src/faircopy-config.json',
'src/latest.md',
'src/tei-simple.json'
],
osxNotarize: {
tool: 'notarytool',
appleId: 'APPLE ID OF ACCOUNT WITH APPLE DEVELOPER SUBSCRIPTION',
appleIdPassword: 'DEVELOPER APPLICATION PASSWORD',
teamId: 'APPLE DEVELOPER TEAM ID'
}
},
rebuildConfig: {},
makers: [
{
name: '@electron-forge/maker-dmg',
config: {
platform: 'darwin',
background: './src/render/img/DMG_background.png',
icon: './src/render/icons/icon.icns',
iconSize: 145,
format: 'ULFO',
contents: [
{ "x": 480, "y": 220, "type": "link", "path": "/Applications" },
{ "x": 140, "y": 220, "type": "file", "path": "<YOUR ABSOLUTE PATH TO PROJECT BASE DIR>/out/FairCopy-darwin-x64/FairCopy.app" }
]
}
},
{
name: '@electron-forge/maker-squirrel',
config: {
loadingGif: './src/render/img/install_spinner.gif',
iconURL: 'https://raw.githubusercontent.com/performant-software/faircopy/main/render/icons/icon.ico',
setupIcon: './src/render/icons/icon.ico',
signWithParams: '/a',
platform: 'win32'
}
}
],
publishers: [
{
name: '@electron-forge/publisher-github',
config: {
authToken: 'GITHUB PERSONAL ACCESS TOKEN WITH WRITE ACCESS TO REPO BELOW',
repository: {
owner: 'REPO OWNER',
name: 'REPO NAME'
},
prerelease: true
}
}
],
plugins: [
{
name: '@electron-forge/plugin-auto-unpack-natives',
config: {},
},
{
name: '@electron-forge/plugin-webpack',
config: {
mainConfig: './webpack.main.config.js',
renderer: {
config: './webpack.renderer.config.js',
entryPoints: [
{
html: './src/index.html',
js: './src/main-window-renderer.js',
nodeIntegration: true,
name: 'main_window',
preload: {
js: './src/faircopy-preload.js',
},
},
{
html: './src/index.html',
js: './src/project-window-renderer.js',
nodeIntegration: true,
name: 'project_window',
preload: {
js: './src/faircopy-preload.js',
},
},
{
html: './src/index.html',
js: './src/preview-window-renderer.js',
nodeIntegration: true,
name: 'preview_window',
preload: {
js: './src/faircopy-preload.js',
},
},
{
html: './src/index.html',
js: './src/image-window-renderer.js',
nodeIntegration: true,
name: 'image_window',
preload: {
js: './src/faircopy-preload.js',
},
},
{
html: './src/index.html',
js: './src/worker-window-renderer.js',
nodeIntegration: true,
name: 'worker_window',
preload: {
js: './src/faircopy-preload.js',
},
},
],
},
},
},
// Fuses are used to enable/disable various Electron functionality
// at package time, before code signing the application
new FusesPlugin({
version: FuseVersion.V1,
[FuseV1Options.RunAsNode]: false,
[FuseV1Options.EnableCookieEncryption]: true,
[FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false,
[FuseV1Options.EnableNodeCliInspectArguments]: false,
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true,
[FuseV1Options.OnlyLoadAppFromAsar]: true,
}),
],
};