2015-11-13 21:39:38 +08:00
|
|
|
@echo off
|
|
|
|
title VSCode Dev
|
|
|
|
|
2015-11-26 16:29:43 +08:00
|
|
|
pushd %~dp0\..
|
|
|
|
|
|
|
|
:: Node modules
|
|
|
|
if not exist node_modules call .\scripts\npm.bat install
|
|
|
|
|
|
|
|
:: Get electron
|
|
|
|
node .\node_modules\gulp\bin\gulp.js electron
|
|
|
|
|
2015-11-26 17:07:11 +08:00
|
|
|
:: Build
|
|
|
|
if not exist out node .\node_modules\gulp\bin\gulp.js compile
|
|
|
|
|
2015-11-26 16:29:43 +08:00
|
|
|
:: Configuration
|
2015-11-13 21:39:38 +08:00
|
|
|
set NODE_ENV=development
|
|
|
|
set VSCODE_DEV=1
|
2015-12-01 22:26:04 +08:00
|
|
|
set ELECTRON_DEFAULT_ERROR_MODE=1
|
2015-11-13 21:39:38 +08:00
|
|
|
set ELECTRON_ENABLE_LOGGING=1
|
|
|
|
set ELECTRON_ENABLE_STACK_DUMPING=1
|
|
|
|
|
2015-11-26 16:29:43 +08:00
|
|
|
:: Launch Code
|
2016-01-13 18:11:36 +08:00
|
|
|
.\.build\electron\electron.exe . %*
|
2015-11-13 21:39:38 +08:00
|
|
|
popd
|
2015-12-18 16:21:19 +08:00
|
|
|
|
|
|
|
:: Unset environment variables after we are done
|
|
|
|
set NODE_ENV=
|
|
|
|
set VSCODE_DEV=
|
|
|
|
set ELECTRON_DEFAULT_ERROR_MODE=
|
|
|
|
set ELECTRON_ENABLE_LOGGING=
|
|
|
|
set ELECTRON_ENABLE_STACK_DUMPING=
|