mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 11:10:48 +00:00
parent
b845a937e6
commit
4a85ac575c
2 changed files with 32 additions and 14 deletions
|
@ -1,12 +1,20 @@
|
|||
@echo off
|
||||
title VSCode Dev
|
||||
|
||||
pushd %~dp0\..
|
||||
|
||||
:: Node modules
|
||||
if not exist node_modules call .\scripts\npm.bat install
|
||||
|
||||
:: Get electron
|
||||
node .\node_modules\gulp\bin\gulp.js electron
|
||||
|
||||
:: Configuration
|
||||
set NODE_ENV=development
|
||||
set VSCODE_DEV=1
|
||||
set ELECTRON_ENABLE_LOGGING=1
|
||||
set ELECTRON_ENABLE_STACK_DUMPING=1
|
||||
|
||||
pushd %~dp0\..
|
||||
node .\node_modules\gulp\bin\gulp.js electron
|
||||
:: Launch Code
|
||||
.\.build\electron\CodeOSS.exe . %*
|
||||
popd
|
||||
|
|
|
@ -7,17 +7,27 @@ else
|
|||
ROOT=$(dirname $(dirname $(readlink -f $0)))
|
||||
fi
|
||||
|
||||
function code() {
|
||||
cd $ROOT
|
||||
|
||||
# Node modules
|
||||
test -d node_modules || ./scripts/npm.sh install
|
||||
|
||||
# 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
|
||||
|
||||
# Prepare
|
||||
cd $ROOT ; node node_modules/gulp/bin/gulp.js electron
|
||||
|
||||
# Launch Code
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
cd $ROOT; ./.build/electron/Electron.app/Contents/MacOS/Electron . $*
|
||||
./.build/electron/Electron.app/Contents/MacOS/Electron . $*
|
||||
else
|
||||
cd $ROOT; ./.build/electron/electron . $*
|
||||
./.build/electron/electron . $*
|
||||
fi
|
||||
}
|
||||
|
||||
code
|
||||
|
|
Loading…
Reference in a new issue