-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforge.config.cjs
More file actions
92 lines (90 loc) · 2.44 KB
/
forge.config.cjs
File metadata and controls
92 lines (90 loc) · 2.44 KB
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
const path = require('path');
/** @type {import('@electron-forge/shared-types').ForgeConfig} */
const config = {
packagerConfig: {
name: 'Blockingmachine',
executableName: 'blockingmachine',
asar: {
unpack: "**/node_modules/electron-store/**/*"
},
extraResource: [],
afterPrune: [
(buildPath, electronVersion, platform, arch, callback) => {
require('@electron/rebuild').rebuild({
buildPath,
electronVersion,
arch,
force: true,
onlyModules: ['electron-store']
}).then(() => callback()).catch((err) => callback(err));
}
],
icon: './assets/Blockingmachine',
platform: 'darwin',
arch: 'arm64',
osxSign: {
identity: 'Developer ID Application: Daniel Hipskind (365KR8NF53)',
hardenedRuntime: true,
entitlements: 'build/entitlements.mac.plist',
'entitlements-inherit': 'build/entitlements.mac.plist',
'gatekeeper-assess': false
},
osxNotarize: process.env.APPLE_ID ? {
tool: 'notarytool',
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_PASSWORD,
teamId: process.env.APPLE_TEAM_ID
} : undefined
},
makers: [
{
name: '@electron-forge/maker-dmg',
config: {
format: 'ULFO',
name: 'Blockingmachine',
overwrite: true,
icon: './assets/Blockingmachine.icns',
background: './assets/dmg-background.png',
contents: [
{
x: 410,
y: 150,
type: 'link',
path: '/Applications'
},
{
x: 130,
y: 150,
type: 'file',
path: './out/Blockingmachine-darwin-arm64/Blockingmachine.app'
}
]
}
}
],
plugins: [
{
name: '@electron-forge/plugin-webpack',
config: {
mainConfig: './webpack.main.config.cjs',
renderer: {
config: './webpack.renderer.config.cjs',
entryPoints: [
{
html: './src/index.html',
js: './src/renderer.tsx',
name: 'main_window',
preload: {
js: './src/preload.ts'
}
}
],
port: 3000,
loggerPort: 9000
},
devContentSecurityPolicy: "default-src 'self' 'unsafe-inline' data:; script-src 'self' 'unsafe-eval' 'unsafe-inline' data:"
}
}
]
};
module.exports = config;