You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-21Lines changed: 6 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,35 +87,20 @@ SwitchHosts! stores data at `~/.SwitchHosts` (Or folder `.SwitchHosts` under the
87
87
npm run dev
88
88
```
89
89
90
-
### Package and Zip
90
+
### Package
91
91
92
-
- It is recommended to use [electron-packager](https://github.com/electron-userland/electron-packager) for packaging.
93
-
94
-
```bash
95
-
# install electron-packager for use from cli
96
-
npm install electron-packager -g
97
-
```
98
-
99
-
- Go to the `./` folder, run `npm run pack`. The packaged file will be the `./dist` folder.
92
+
- It is recommended to use [electron-builder](https://github.com/electron-userland/electron-builder) for packaging.
93
+
- Go to the `./` folder, run `npm run make`. The packaged file will be the `./dist` folder.
100
94
- This command may take several minutes to finish when you run it the first time, as it needs time to download dependent files. You can download the dependencies manually [here](https://github.com/electron/electron/releases), or [Taobao mirror](https://npm.taobao.org/mirrors/electron/), then save the files to `~/.electron`. You can check the [Electron Docs](http://electron.atom.io/docs/) for more infomation.
101
95
102
96
```bash
103
97
# pack
104
-
npm run pack # the packed files will be in ./dist
98
+
npm run make# the packed files will be in ./dist
105
99
106
-
# or pack for a special platform
107
-
npm run pack-mac # pack for macOS, the packed files will be in ./dist
108
-
npm run pack-win # pack for Windows, the packed files will be in ./dist
100
+
# or
101
+
npm run build-and-make
109
102
```
110
103
111
-
- After packaging, you can make a zip file by running the following command.
112
-
113
-
```bash
114
-
# zip
115
-
npm run zip # the zipped files will be in ./dist
116
-
```
117
-
118
-
119
104
## Copyright
120
105
121
106
SwitchHosts! is a free and open source software, it is released under the MIT license.
0 commit comments