mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-21 09:35:27 -04:00
12efa6641c
Check if GDevelop electron-app is already built. If it is already built, the script will skip the "npm install" step and will start GDevelop much faster.
37 lines
1.0 KiB
Batchfile
37 lines
1.0 KiB
Batchfile
@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
|
|
|