forked from dopadream/FNF-PsychEngine-EKPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
open.bat
45 lines (38 loc) · 732 Bytes
/
open.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
36
37
38
39
40
41
42
43
44
45
@echo off
echo Checking for updates...
git remote update
git status | find /i "behind"
if errorlevel 1 goto check
git pull
if %errorlevel% == 0 goto compile
echo.
echo You have made changes to the following files:
git status --short
echo These changes will be overwritten.
echo.
choice /m "Would you like to continue"
if %errorlevel% == 1 goto reset
echo.
choice /m "Would you like to recompile with the current changes"
if %errorlevel% == 1 goto compile
goto open
:check
if exist export\ (
goto open
) else (
goto compile
)
:reset
git reset --hard
git pull
goto compile
:compile
echo Compiling...
lime setup
lime update windows
lime build windows
goto open
:open
echo Opening...
cd export/release/windows/bin
explorer .