Skip to content

Commit f172938

Browse files
add electron-builder
1 parent a4c592e commit f172938

File tree

4 files changed

+487
-24
lines changed

4 files changed

+487
-24
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ build
1515
npm-debug.log
1616

1717
.idea
18+
19+
# electron
20+
dist

package.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
22
"name": "electron-with-create-react-app",
33
"version": "0.1.0",
4+
"description": "Electron app powered by CRA",
5+
"author": "OSS Community",
46
"private": true,
57
"devDependencies": {
68
"electron": "^1.4.15",
9+
"electron-builder": "^13.6.0",
710
"foreman": "^2.0.0",
811
"react-scripts": "^0.9.0"
912
},
@@ -19,6 +22,18 @@
1922
"test": "react-scripts test --env=jsdom",
2023
"eject": "react-scripts eject",
2124
"electron": "electron .",
22-
"dev": "nf start -p 3000"
25+
"dev": "nf start -p 3000",
26+
"pack": "build --dir",
27+
"dist": "npm run build && build",
28+
"postinstall": "install-app-deps"
29+
},
30+
"build": {
31+
"appId": "com.electron.electron-with-create-react-app",
32+
"win": {
33+
"iconUrl": "https://cdn2.iconfinder.com/data/icons/designer-skills/128/react-256.png"
34+
},
35+
"directories": {
36+
"buildResources": "public"
37+
}
2338
}
2439
}

public/icon.ico

264 KB
Binary file not shown.

0 commit comments

Comments
 (0)