-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpy2exe.bat
45 lines (35 loc) · 981 Bytes
/
py2exe.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
title py2exe
cd bade
:loop
echo.
echo -------------------------------------
echo press a key to proceed the building process or exit by pressing CTRL+C
pause>nul
if EXIST ..\build (
echo deleting build content...
rmdir ..\build /s /q
echo creating build folder...
mkdir ..\build
) else (
echo creating build folder...
mkdir ..\build
)
echo building...
python setup.py build > ../build/log.txt
echo moving bade/build/program.exe to actual build dir...
move build\program.exe ..\build\ >nul
rmdir build /s /q
echo copying level file to build dir...
mkdir ..\build\game
copy game\level.map ..\build\game\level.map >nul
echo copying characters folder to build dir...
mkdir ..\build\game\characters
copy game\characters ..\build\game\characters >nul
del ..\build\game\characters\__init__.py
echo copying res folder to build dir...
mkdir ..\build\res
copy res ..\build\res >nul
del ..\build\res\__init__.py
echo DONE - you can find the log in build\log.txt
goto loop