Skip to content

Commit 7ce2f66

Browse files
authored
Merge pull request #117 from FurTorie/patch-2
Update build.js
2 parents 7a79230 + c94b5b8 commit 7ce2f66

1 file changed

Lines changed: 23 additions & 3 deletions

File tree

build.js

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,16 @@ class Index {
6969
artifactName: "${productName}-${os}-${arch}.${ext}",
7070
extraMetadata: { main: 'app/app.js' },
7171
files: ["app/**/*", "package.json", "LICENSE.md"],
72-
directories: { "output": "dist" },
73-
compression: 'maximum',
72+
directories: {
73+
"output": "dist"
74+
},
75+
compression: 'normal',
7476
asar: true,
77+
electronDownload: {
78+
cache: "./node_modules/.cache/electron"
79+
},
80+
nodeGypRebuild: false,
81+
npmRebuild: true,
7582
publish: [{
7683
provider: "github",
7784
releaseType: 'release',
@@ -93,15 +100,28 @@ class Index {
93100
icon: "./app/assets/images/icon.icns",
94101
category: "public.app-category.games",
95102
identity: null,
103+
hardenedRuntime: false,
104+
gatekeeperAssess: false,
105+
mergeASARs: true,
106+
singleArchFiles: "node_modules/sqlite3/**/*",
96107
target: [{
97108
target: "dmg",
98109
arch: "universal"
99110
},
100111
{
101-
target: "zip",
112+
target: "zip",
102113
arch: "universal"
103114
}]
104115
},
116+
dmg: {
117+
sign: false,
118+
contents: [
119+
{ x: 130, y: 220 },
120+
{ x: 410, y: 220, type: 'link', path: '/Applications' }
121+
],
122+
artifactName: "${productName}-mac-${arch}.${ext}",
123+
format: "ULFO"
124+
},
105125
linux: {
106126
icon: "./app/assets/images/icon.png",
107127
target: [{

0 commit comments

Comments
 (0)