parent
b845a937e6
commit
4a85ac575c
|
@ -1,12 +1,20 @@
|
||||||
@echo off
|
@echo off
|
||||||
title VSCode Dev
|
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 NODE_ENV=development
|
||||||
set VSCODE_DEV=1
|
set VSCODE_DEV=1
|
||||||
set ELECTRON_ENABLE_LOGGING=1
|
set ELECTRON_ENABLE_LOGGING=1
|
||||||
set ELECTRON_ENABLE_STACK_DUMPING=1
|
set ELECTRON_ENABLE_STACK_DUMPING=1
|
||||||
|
|
||||||
pushd %~dp0\..
|
:: Launch Code
|
||||||
node .\node_modules\gulp\bin\gulp.js electron
|
|
||||||
.\.build\electron\CodeOSS.exe . %*
|
.\.build\electron\CodeOSS.exe . %*
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -7,17 +7,27 @@ else
|
||||||
ROOT=$(dirname $(dirname $(readlink -f $0)))
|
ROOT=$(dirname $(dirname $(readlink -f $0)))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Configuration
|
function code() {
|
||||||
export NODE_ENV=development
|
cd $ROOT
|
||||||
export VSCODE_DEV=1
|
|
||||||
export ELECTRON_ENABLE_LOGGING=1
|
|
||||||
export ELECTRON_ENABLE_STACK_DUMPING=1
|
|
||||||
|
|
||||||
# Prepare
|
# Node modules
|
||||||
cd $ROOT ; node node_modules/gulp/bin/gulp.js electron
|
test -d node_modules || ./scripts/npm.sh install
|
||||||
|
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
# Get electron
|
||||||
cd $ROOT; ./.build/electron/Electron.app/Contents/MacOS/Electron . $*
|
node node_modules/gulp/bin/gulp.js electron
|
||||||
else
|
|
||||||
cd $ROOT; ./.build/electron/electron . $*
|
# Configuration
|
||||||
fi
|
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
|
||||||
|
|
Loading…
Reference in a new issue