Skip to content

Commit

Permalink
[desktop] Allow starting desktop client via npm again.
Browse files Browse the repository at this point in the history
For macOS the binary has different path.
  • Loading branch information
charlag committed Oct 22, 2019
1 parent e96b5ea commit 32e38bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"scripts": {
"flow": "flow; test $? -eq 0 -o $? -eq 2",
"start": "./node_modules/electron/dist/electron --inspect=5858 ./build/",
"start": "./start-desktop.sh",
"test": "cd test && node test api && node test client",
"testapi": "cd test && node test api",
"testclient": "cd test && node test client"
Expand Down
6 changes: 6 additions & 0 deletions start-desktop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
if [[ $OSTYPE = darwin* ]]; then
./node_modules/electron/dist/Electron.app/Contents/MacOS/Electron --inspect=5858 ./build/
else
./node_modules/electron/dist/electron --inspect=5858 ./build/
fi

0 comments on commit 32e38bf

Please sign in to comment.