forked from cawoodm/get-lost-hombre
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
54 lines (47 loc) · 1.17 KB
/
build.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
46
47
48
49
50
51
52
53
54
@ECHO OFF
SETLOCAL
CD %dp0%
SET STR=%1
IF "%1"=="" SET STR=%date% %time%
:: Compile JS into one file
DEL app.js
TYPE tinymusic.js >> app.js
TYPE functions.js >> app.js
TYPE init.js >> app.js
TYPE sprites.js >> app.js
TYPE terrain.js >> app.js
TYPE entity.js >> app.js
TYPE draw.js >> app.js
TYPE music.js >> app.js
TYPE events.js >> app.js
TYPE menu.js >> app.js
TYPE restart.js >> app.js
TYPE game.js >> app.js
:: Prepare release
TYPE app.appcache > release\app.appcache
COPY /Y app.js release\
DEL /Q app.js
COPY /Y sprites.png release\
COPY /Y favicon.png release\
COPY /Y favicon.ico release\
ECHO "Ready to test in release\ folder"
PAUSE
:: Commit local changes
git add .
git commit -m "Build %STR%"
git push origin master
:: Copy to local cawoodm github site
COPY /Y .\release\*.* ..\..\..\cawoodm.github.io\jumpy-mike
ECHO "Ready to test in cawoodm.github.io\jumpy-mike\ folder"
::PAUSE
:: Publish to github
CD ..\..\..\cawoodm.github.io\jumpy-mike
git add .
git commit -m "Release %STR%"
git push origin master
ECHO "Ready to test at http://cawoodm.github.io/jumpy-mike/"
START http://cawoodm.github.io/jumpy-mike/
::PAUSE
::CD ..\..\JavaScript\games\trex
::echo -- %dp0%
ENDLOCAL