Skip to content

Commit 3544d2e

Browse files
committed
fix(depedency): macOS version build app
1 parent 05ca6e6 commit 3544d2e

2 files changed

Lines changed: 75 additions & 93 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 73 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -20,103 +20,85 @@
2020
"publish-github": "npm publish --registry=https://npm.pkg.github.com",
2121
"publish-npm": "npm publish --registry=https://registry.npmjs.org/"
2222
},
23-
"build": {
24-
"appId": "com.dandyfaishalfahmi.invisiblecoder",
25-
"productName": "InvisibleCoder",
26-
"files": [
27-
"dist/**/*",
28-
"dist-electron/**/*",
29-
"package.json",
30-
"electron/**/*"
31-
],
32-
"directories": {
33-
"output": "release",
34-
"buildResources": "assets"
35-
},
36-
"asar": true,
37-
"compression": "maximum",
38-
"generateUpdatesFilesForAllChannels": true,
39-
"mac": {
40-
"category": "public.app-category.developer-tools",
41-
"target": [
42-
{
43-
"target": "dmg",
44-
"arch": [
45-
"x64",
46-
"arm64"
47-
]
48-
},
49-
{
50-
"target": "zip",
51-
"arch": [
52-
"x64",
53-
"arm64"
54-
]
55-
}
56-
],
57-
"artifactName": "InvisibleCoder-${arch}.${ext}",
58-
"icon": "assets/icons/mac/icon.icns",
59-
"hardenedRuntime": true,
60-
"gatekeeperAssess": false,
61-
"entitlements": "build/entitlements.mac.plist",
62-
"entitlementsInherit": "build/entitlements.mac.plist",
63-
"identity": "Developer ID Application",
64-
"notarize": true,
65-
"protocols": {
66-
"name": "invisiblecoder-protocol",
67-
"schemes": [
68-
"invisiblecoder"
69-
]
70-
}
71-
},
72-
"win": {
73-
"target": [
74-
"nsis"
75-
],
76-
"icon": "assets/icons/win/icon.ico",
77-
"artifactName": "${productName}-Windows-${version}.${ext}",
78-
"protocols": {
79-
"name": "invisiblecoder-protocol",
80-
"schemes": [
81-
"invisiblecoder"
82-
]
83-
}
84-
},
85-
"linux": {
86-
"target": [
87-
"AppImage"
88-
],
89-
"icon": "assets/icons/png/icon-256x256.png",
90-
"artifactName": "${productName}-Linux-${version}.${ext}",
91-
"protocols": {
92-
"name": "invisiblecoder-protocol",
93-
"schemes": [
94-
"invisiblecoder"
95-
]
96-
}
97-
},
98-
"publish": [
23+
"build": {
24+
"appId": "com.dandyfaishalfahmi.invisiblecoder",
25+
"productName": "InvisibleCoder",
26+
"files": [
27+
"dist/**/*",
28+
"dist-electron/**/*",
29+
"package.json",
30+
"electron/**/*"
31+
],
32+
"directories": {
33+
"output": "release",
34+
"buildResources": "assets"
35+
},
36+
"asar": false,
37+
"compression": "maximum",
38+
"generateUpdatesFilesForAllChannels": true,
39+
"mac": {
40+
"category": "public.app-category.developer-tools",
41+
"target": [
9942
{
100-
"provider": "github",
101-
"owner": "kdandy",
102-
"repo": "invisiblecoder",
103-
"private": false,
104-
"releaseType": "release"
105-
}
106-
],
107-
"extraResources": [
43+
"target": "dmg",
44+
"arch": ["x64", "arm64"]
45+
},
10846
{
109-
"from": ".env",
110-
"to": ".env",
111-
"filter": [
112-
"**/*"
113-
]
47+
"target": "zip",
48+
"arch": ["x64", "arm64"]
11449
}
11550
],
116-
"extraMetadata": {
117-
"main": "dist-electron/main.js"
51+
"artifactName": "InvisibleCoder-${arch}.${ext}",
52+
"icon": "assets/icons/mac/icon.icns",
53+
"identity": null,
54+
"notarize": false,
55+
"hardenedRuntime": false,
56+
"gatekeeperAssess": false,
57+
"entitlements": null,
58+
"entitlementsInherit": null,
59+
"protocols": {
60+
"name": "invisiblecoder-protocol",
61+
"schemes": ["invisiblecoder"]
11862
}
11963
},
64+
"win": {
65+
"target": ["nsis"],
66+
"icon": "assets/icons/win/icon.ico",
67+
"artifactName": "${productName}-Windows-${version}.${ext}",
68+
"protocols": {
69+
"name": "invisiblecoder-protocol",
70+
"schemes": ["invisiblecoder"]
71+
}
72+
},
73+
"linux": {
74+
"target": ["AppImage"],
75+
"icon": "assets/icons/png/icon-256x256.png",
76+
"artifactName": "${productName}-Linux-${version}.${ext}",
77+
"protocols": {
78+
"name": "invisiblecoder-protocol",
79+
"schemes": ["invisiblecoder"]
80+
}
81+
},
82+
"publish": [
83+
{
84+
"provider": "github",
85+
"owner": "kdandy",
86+
"repo": "invisiblecoder",
87+
"private": false,
88+
"releaseType": "release"
89+
}
90+
],
91+
"extraResources": [
92+
{
93+
"from": ".env",
94+
"to": ".env",
95+
"filter": ["**/*"]
96+
}
97+
],
98+
"extraMetadata": {
99+
"main": "dist-electron/main.js"
100+
}
101+
},
120102
"keywords": [
121103
"interview",
122104
"coding",

0 commit comments

Comments
 (0)