generated from HaxeFlixel/game-jam-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDEPLOY.bat
More file actions
48 lines (38 loc) · 990 Bytes
/
DEPLOY.bat
File metadata and controls
48 lines (38 loc) · 990 Bytes
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
46
47
48
@ECHO OFF
TITLE "Build & Deploy for Itch"
FOR /F "tokens=1 delims= " %%i IN ('getPID') DO (
set PID=%%i
)
"C:\Program Files\PowerToys\modules\Awake\PowerToys.Awake.exe" --pid %PID%
butler upgrade
ECHO "[Win] Building..."
lime build windows -clean -final
IF %ERRORLEVEL% == 0 GOTO DEPLOYW
ECHO "Build failed, exiting..."
PAUSE
EXIT /B %ERRORLEVEL%
:DEPLOYW
ECHO "[Win] Deploying to Itch..."
butler push export/windows/bin axolstudio/starmander:windows
IF %ERRORLEVEL% == 0 GOTO SUCCESSW
ECHO "Deploy failed, exiting..."
PAUSE
EXIT /B %ERRORLEVEL%
:SUCCESSW
ECHO "[Win] Success!"
ECHO "[HTML5] Building..."
lime build html5 -clean -final -nolaunch
IF %ERRORLEVEL% == 0 GOTO DEPLOYH
ECHO "Build failed, exiting..."
PAUSE
EXIT /B %ERRORLEVEL%
:DEPLOYH
ECHO "[HTML5] Deploying to Itch..."
butler push export/html5/bin axolstudio/starmander:html5
IF %ERRORLEVEL% == 0 GOTO SUCCESSH
ECHO "Deploy failed, exiting..."
PAUSE
EXIT /B %ERRORLEVEL%
:SUCCESSH
ECHO "[HTML5] Success!"
PAUSE