-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.bat
More file actions
65 lines (58 loc) · 1.61 KB
/
make.bat
File metadata and controls
65 lines (58 loc) · 1.61 KB
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
@echo off
if "%1" == "" goto help
if "%1" == "help" (
:help
echo.
echo.Please use `make ^<target^>` where ^<target^> is one of
echo. design to auto-generate the python files from ui_design
echo. build to build source distribution
echo. buildall to also build Windows binaries - exe and msi installers
echo. clean to remove unwanted auto-generated files/folders
echo. cleanall to also remove manually auto-generated files
goto end
)
if "%1" == "design" (
pyuic6 "ui_design\BoringGorilla_design.ui" -o BoringGorilla_design.py
pyuic6 "ui_design\Preferences_design.ui" -o Preferences_design.py
echo.
echo.Design file generated - BoringGorilla_design.py
echo.Design file generated - Preferences_design.py
echo.All the design files generated successfully.
goto end
)
if "%1" == "build" (
python setup.py build_exe
echo.
echo.Build build_exe finished.
goto end
)
if "%1%" == "clean" (
:clean
rmdir /S /Q __pycache__
rmdir /S /Q "build\bdist.win32"
rmdir /S /Q dist
del MANIFEST
echo.
echo. Removed dir - __pycache__
echo. Removed dir - "build/bdist.win32"
echo. Removed dir - dist
echo. Removed file - MANIFEST
echo.Clean finished.
goto end
)
if "%1%" == "cleanall" (
del BoringGorilla_design.py
del Preferences_design.py
del config.ini
echo.
echo. Removed file - BoringGorilla_design.py
echo. Removed file - Preferences_design.py
echo. Removed file - config.ini
echo.
goto clean
)
:end
echo.
echo.######################################################################
echo.######################################################################
echo.