forked from 4ian/GDevelop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitCloneAndBuildGD.bat
36 lines (30 loc) · 1.02 KB
/
gitCloneAndBuildGD.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@echo off
REM ===============================================================
REM This Windows batch script downloads Gdevelop from the master branch, builds the newIde and launches it.
REM
REM It still requires git, nodejs and electron to be installed.
REM If Gdevelop is already built, the script will simply launch it.
REM ===============================================================
echo This will clone, install, and launch GDevelop development version. Please make sure you have git and Node.js installed.
SET fork=4ian
SET project=GDevelop
IF exist %project%/newIDE/electron-app/node_modules (
echo /newIDE/electron-app/node_modules already exists. Skipping "npm install..."
cd %project%/newIDE/app
GOTO runElectronApp
)
ELSE (
call git clone https://github.com/%fork%/%project%.git
cd %project%/newIDE/app
call npm install
cd ../electron-app
call npm install
cd ../app
GOTO runElectronApp
)
:runElectronApp
start cmd /k npm start
cd ../electron-app
TIMEOUT /T 60
call node node_modules\electron\cli.js app
goto:eof