未验证 提交 bddb770b 编写于 作者: D Daniel Wasserlauf 提交者: GitHub

refactor: better cross-platform support of start script (#947)

* [master]: Update for starting on non windows machines

* [master]: update for package json

* [master]: Updates from review

* [master]: Update for Readme
Co-authored-by: NDaniel Wasserlauf <dwasserlauf@commercehub.com>
上级 af78a654
......@@ -103,13 +103,13 @@ Thanks! If you feel like it, you can [buy me a coffee](https://buymeacoff.ee/gab
on *nix systems (You'll need the Xcode command line tools on macOS):
- clone the repository
- `npm run install-linux`
- `npm start`
- `npm run start`
on Windows:
- start cmd or powershell **as administrator**
- clone the repository
- `npm run install-windows`
- `npm start`
- `npm run start`
#### Building
Note: Due to native modules, you can only build targets for the host OS you are using.
......
......@@ -13,7 +13,7 @@
],
"main": "src/_boot.js",
"scripts": {
"start": "node_modules\\.bin\\electron src --nointro",
"start": "electron src --nointro",
"install-linux": "npm install && cd src && npm install && ./../node_modules/.bin/electron-rebuild -f -w node-pty && cd ..",
"preinstall-windows": "npm install --global --production windows-build-tools && npm install --global node-gyp && setx PYTHON \"%USERPROFILE%\\.windows-build-tools\\python27\\python.exe\"",
"install-windows": "npm install && cd src && npm install && ..\\node_modules\\.bin\\electron-rebuild -f -w node-pty && cd ..",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册