1
1
const NodePolyfillPlugin = require ( 'node-polyfill-webpack-plugin' ) ;
2
2
3
3
module . exports = {
4
+
4
5
configureWebpack : {
5
6
plugins : [
6
7
new NodePolyfillPlugin ( )
@@ -9,30 +10,30 @@ module.exports = {
9
10
pluginOptions : {
10
11
electronBuilder : {
11
12
preload : './src/preload.js' ,
12
-
13
+
13
14
// Or, for multiple preload files:
14
15
// preload: { preload: 'src/preload.js', otherPreload: 'src/preload2.js' }
15
16
builderOptions : {
16
17
appId : 'com.linerai.liner' ,
17
18
afterSign : "./afterSignHook.js" ,
18
19
"extraResources" : [ {
19
- "from" : process . env . BACKEND_BUILD_PATH ,
20
+ "from" : process . env . BACKEND_BUILD_PATH ,
20
21
"to" : "core" ,
21
22
"filter" : [
22
23
"**/*"
23
24
]
24
25
} ] , // access via path.join(path.dirname(__dirname), 'liner_core' );
25
26
26
27
"mac" : {
27
- "icon" : "build/Icon-1024.png" ,
28
+ "icon" : "build/Icon-1024.png" ,
28
29
"hardenedRuntime" : true ,
29
30
"entitlements" : "build/entitlements.mac.plist" ,
30
31
"entitlementsInherit" : "build/entitlements.mac.plist" ,
31
32
"minimumSystemVersion" : "12.3.0" ,
32
33
"extendInfo" : {
33
34
"LSMinimumSystemVersion" : "12.3.0"
34
- } ,
35
-
35
+ } ,
36
+
36
37
"target" : {
37
38
"target" : "dmg" ,
38
39
"arch" : [
@@ -42,11 +43,11 @@ module.exports = {
42
43
} ,
43
44
44
45
"win" : {
45
- "icon" : "build/Icon-1024.png" ,
46
+ "icon" : "build/Icon-1024.png" ,
46
47
"target" : {
47
48
"target" : "NSIS" ,
48
49
"arch" : [
49
- process . arch
50
+ process . arch
50
51
]
51
52
}
52
53
}
0 commit comments