mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
@@ -7,17 +7,27 @@ else
|
||||
ROOT=$(dirname $(dirname $(readlink -f $0)))
|
||||
fi
|
||||
|
||||
# Configuration
|
||||
export NODE_ENV=development
|
||||
export VSCODE_DEV=1
|
||||
export ELECTRON_ENABLE_LOGGING=1
|
||||
export ELECTRON_ENABLE_STACK_DUMPING=1
|
||||
function code() {
|
||||
cd $ROOT
|
||||
|
||||
# Prepare
|
||||
cd $ROOT ; node node_modules/gulp/bin/gulp.js electron
|
||||
# Node modules
|
||||
test -d node_modules || ./scripts/npm.sh install
|
||||
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
cd $ROOT; ./.build/electron/Electron.app/Contents/MacOS/Electron . $*
|
||||
else
|
||||
cd $ROOT; ./.build/electron/electron . $*
|
||||
fi
|
||||
# Get electron
|
||||
node node_modules/gulp/bin/gulp.js electron
|
||||
|
||||
# Configuration
|
||||
export NODE_ENV=development
|
||||
export VSCODE_DEV=1
|
||||
export ELECTRON_ENABLE_LOGGING=1
|
||||
export ELECTRON_ENABLE_STACK_DUMPING=1
|
||||
|
||||
# Launch Code
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
./.build/electron/Electron.app/Contents/MacOS/Electron . $*
|
||||
else
|
||||
./.build/electron/electron . $*
|
||||
fi
|
||||
}
|
||||
|
||||
code
|
||||
|
||||
Reference in New Issue
Block a user