Skip to content

Commit 7a223d4

Browse files
committed
fix windows example
1 parent daefc35 commit 7a223d4

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@ To try with an actual electron app, run:
2020
$ npm start &
2121
$ cd example
2222
$ npm install
23+
```
24+
25+
On Darwin:
26+
27+
```bash
2328
$ npm run build
2429
$ ./dist/mac/hyper.app/Contents/MacOS/hyper
25-
```
30+
```
31+
32+
On Windows:
33+
34+
```bash
35+
$ npm install --save 7zip-bin-win app-builder-bin-win electron-builder-squirrel-windows
36+
$ npm run build
37+
$ "example\dist\squirrel-windows\hyper Setup 0.0.0.exe"
38+
```

example/package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
{
22
"name": "hyper",
33
"version": "0.0.0",
4+
"author": "author",
5+
"description": "description",
46
"scripts": {
57
"build": "electron-builder"
68
},
79
"build": {
8-
"appId": "co.zeit.hyper"
10+
"appId": "co.zeit.hyper",
11+
"win": {
12+
"target": ["squirrel"]
13+
},
14+
"squirrelWindows": {
15+
"iconUrl": "http://example.com/"
16+
}
917
},
1018
"dependencies": {},
1119
"devDependencies": {

0 commit comments

Comments
 (0)