-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathforge.config.js
More file actions
107 lines (104 loc) · 2.62 KB
/
Copy pathforge.config.js
File metadata and controls
107 lines (104 loc) · 2.62 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
module.exports = {
packagerConfig: {
name: 'Athanor',
executableName: 'athanor',
asar: true,
prune: true,
icon: 'assets/athanor',
osxSign: {
'hardened-runtime': true,
entitlements: './entitlements.mac.plist',
'entitlements-inherit': './entitlements.mac.plist',
postSign: async (context) => {
const glob = require('glob');
const path = require('path');
const { execSync } = require('child_process');
const nativeBinaries = glob.sync(
path.join(context.appPath, '**/*.node')
);
for (const file of nativeBinaries) {
execSync(
`codesign --force --options=runtime --entitlements ./entitlements.mac.plist --sign - "${file}"`,
{ stdio: 'inherit' }
);
}
},
},
asarUnpack: [
'resources/**/*', // Ensure resources directory is not packed into asar
//'node_modules/node-pty/**/*',
//'node_modules/nan/**/*', // node-pty dependency
'**/*.node', // All native bindings
//'x64/node_modules/node-pty/**/*',
//'**/node_modules/node-pty/**/*',
],
// Copy specific resources subfolders
extraResource: [
'resources/files',
'resources/prompts',
'resources/images',
'assets',
],
},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {
setupIcon: 'assets/athanor.ico',
},
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin', 'win32'],
},
{
name: '@electron-forge/maker-deb',
config: {
options: {
icon: 'assets/athanor.png',
},
},
},
{
name: '@electron-forge/maker-rpm',
config: {},
},
],
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: './public/index.html',
js: './src/index.tsx',
name: 'main_window',
preload: {
js: './electron/preload.ts',
config: './webpack.preload.config.js',
},
},
],
},
devServer: {
client: {
overlay: {
errors: true,
warnings: false, // This will now be respected
},
},
},
port: 3000,
loggerPort: 9000,
nodeIntegration: false,
},
},
],
};