-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild-web.bat
69 lines (54 loc) · 1.77 KB
/
build-web.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
55
56
57
58
59
60
61
62
63
64
65
66
67
@echo off
REM make sure we are in the right directory
cd %~dp0
echo deleting build files in 3 seconds
timeout /t 3 /nobreak
REM remove the old build, dist and JackGamesMulticart folders if they are still around
rmdir /s /q dist
rmdir /s /q build
rmdir /s /q JackGamesMulticart
del *.spec
del *.zip
echo ------------------------------------------------------
echo preparing settings for web build
echo ------------------------------------------------------
timeout /t 1 /nobreak
del settings.py
timeout /t 1 /nobreak
copy settings-wasm.py settings.py
timeout /t 1 /nobreak
echo starting new web build in 3 seconds
timeout /t 3 /nobreak
cd ..
pygbag --build multicart
echo ------------------------------------------------------
echo build complete, making zip file
echo ------------------------------------------------------
timeout /t 3 /nobreak
cd multicart/build
7z a -tzip web.zip web
echo ------------------------------------------------------
echo zip file complete, moving to project root
echo ------------------------------------------------------
timeout /t 3 /nobreak
move web.zip ..
cd ..
echo ------------------------------------------------------
echo moving zip file complete, cleaning up garbage
echo ------------------------------------------------------
timeout /t 3 /nobreak
rmdir /s /q dist
rmdir /s /q build
rmdir /s /q JackGamesMulticart
del *.spec
echo ------------------------------------------------------
echo restoring settings for win build
echo ------------------------------------------------------
timeout /t 1 /nobreak
del settings.py
timeout /t 1 /nobreak
copy settings-win.py settings.py
timeout /t 1 /nobreak
echo ------------------------------------------------------
echo ALL DONE, IS IT TIME TO CELEBRATE!?
echo ------------------------------------------------------