mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-13 15:35:20 +01:00
darwin: customize plain electron for dev
This commit is contained in:
+6
-2
@@ -14,7 +14,11 @@ 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 || ./node_modules/.bin/gulp electron
|
||||
fi
|
||||
|
||||
# Build
|
||||
test -d out || ./node_modules/.bin/gulp compile
|
||||
@@ -28,7 +32,7 @@ function code() {
|
||||
|
||||
# Launch Code
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
exec ./.build/electron/Electron.app/Contents/MacOS/Electron . "$@"
|
||||
exec ./.build/electron/Code\ -\ OSS.app/Contents/MacOS/Electron . "$@"
|
||||
else
|
||||
exec ./.build/electron/electron . "$@"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user