File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,15 @@ SwitchHosts! 的数据文件在 `~/.SwitchHosts` 目录下(Windows 用户为
62
62
63
63
# ## 打包发布
64
64
65
+ - 建议使用 [electron-packager](https://github.com/electron-userland/electron-packager) 进行打包
66
+
67
+ ` ` ` bash
68
+ # install electron-packager for use from cli
69
+ npm install electron-packager -g
70
+ ` ` `
71
+
65
72
- 在 ` ./` 目录下,运行 ` npm run pack` 命令,打包后的文件位于 ` ./dist` 目录;
66
- - 首次执行此命令可能需要花费较多时间(需要下载对应的构建文件),更多信息请参考 [Electron 文档](http://electron.atom.io/docs/)。
73
+ - 首次执行此命令可能需要花费较多时间(需要下载对应的构建文件),也可先手动下载[对应的发布版本](https://github.com/electron/electron/releases)([淘宝镜像](https://npm.taobao.org/mirrors/electron/)),手动保存到 ` ~/.electron ` 目录下。 更多信息请参考 [Electron 文档](http://electron.atom.io/docs/)。
67
74
68
75
` ` ` bash
69
76
# pack
You can’t perform that action at this time.
0 commit comments