File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,13 @@ pushd %~dp0\..
8
8
:: Node modules
9
9
if not exist node_modules call .\scripts\npm.bat install
10
10
11
+ for /f " tokens=2 delims=:," %%a in ('findstr /R /C:" \" nameShort\" :.*" product.json') do set NAMESHORT = %%~a
12
+ set NAMESHORT = %NAMESHORT: " =%
13
+ set NAMESHORT = %NAMESHORT:" =% .exe
14
+ set CODE = " .build\electron\%NAMESHORT% "
15
+
11
16
:: Get electron
12
- if not exist .build\electron\code-oss-dev.exe node .\node_modules\gulp\bin\gulp.js electron
17
+ if not exist %CODE% node .\node_modules\gulp\bin\gulp.js electron
13
18
14
19
:: Build
15
20
if not exist out node .\node_modules\gulp\bin\gulp.js compile
@@ -23,7 +28,7 @@ set ELECTRON_ENABLE_LOGGING=1
23
28
set ELECTRON_ENABLE_STACK_DUMPING = 1
24
29
25
30
:: Launch Code
26
- .\.build\electron\code-oss-dev.exe . %*
31
+ %CODE% . %*
27
32
popd
28
33
29
- endlocal
34
+ endlocal
You can’t perform that action at this time.
0 commit comments