From 42832a3a684bf868210ca70e727124b3be5d1dca Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Tue, 9 Aug 2016 16:25:29 +0200 Subject: [PATCH] fix code-cli --- scripts/code-cli.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/code-cli.sh b/scripts/code-cli.sh index 2719ec4d4b7..5823276e47f 100755 --- a/scripts/code-cli.sh +++ b/scripts/code-cli.sh @@ -14,15 +14,19 @@ function code() { test -d node_modules || ./scripts/npm.sh install # Get electron - test -d .build/electron || ./node_modules/.bin/gulp electron + if [[ "$OSTYPE" == "darwin"* ]]; then + test -d .build/electron/Code\ -\ OSS.app || ./node_modules/.bin/gulp electron + else + test -d .build/electron/code-oss || ./node_modules/.bin/gulp electron + fi # Build test -d out || ./node_modules/.bin/gulp compile # Launch Code [[ "$OSTYPE" == "darwin"* ]] \ - && ELECTRON=.build/electron/Electron.app/Contents/MacOS/Electron \ - || ELECTRON=.build/electron/electron + && ELECTRON=.build/electron/Code\ -\ OSS.app/Contents/MacOS/Electron \ + || ELECTRON=.build/electron/code-oss CLI="$ROOT/out/cli.js"