panwriter icon indicating copy to clipboard operation
panwriter copied to clipboard

fix electron:dev task on windows

Open jan-zajic opened this issue 4 years ago • 3 comments

Fix electron:dev npm task to run also on Windows OS.

jan-zajic avatar Jul 15 '21 14:07 jan-zajic

Thanks, I quickly tried this on macOS and got:

yarn run v1.22.10
$ concurrently " set BROWSER=none && yarn start" "wait-on http://localhost:3000 && yarn run electron:tsc -w" "wait-on http://localhost:3000 && yarn run electron:tsc -p electron && set ELECTRON_IS_DEV=1 && electron .
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file
error Command failed with exit code 2.

mb21 avatar Jul 16 '21 06:07 mb21

Thank you, sorry for little mistake.. '"' lost somehow during merging/rebasing.. Can you please try it again?

jan-zajic avatar Jul 16 '21 07:07 jan-zajic

While it runs now, the env variables aren't set. I don't think there's a syntax that works on both unix and windows... so probably best to add a new command electron:dev:windows or something?

mb21 avatar Jul 16 '21 08:07 mb21