-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild.bat
59 lines (43 loc) · 1.29 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
55
56
57
58
59
@echo off
set INNO_DIR=C:\Program Files (x86)\Inno Setup 5
set PATH=%INNO_DIR%;%PATH%
::**************************************************************************
SET /P FIRST=BUILD BINARY DISTRIBUTION WITH DLLs (Py2EXE) (Y/[N])?
IF /I "%FIRST%" NEQ "Y" GOTO END
echo .
for %%i in (res/*.ui) do (
pyside-uic res/%%~ni.ui -o ui_%%~ni.py
echo PySide-UIC processed %%~ni
)
pyside-rcc.exe mainwindow.qrc -o mainwindow_rc.py
::http://www.py2exe.org/index.cgi/FAQ
:: py2exe additional argument is appended internally in the script
python setup.py
:END
echo .
endlocal
::**************************************************************************
SET /P SECOND=BUILD INSTALLER PACKAGE (Inno Setup) (Y/[N])?
IF /I "%SECOND%" NEQ "Y" GOTO END
echo .
::http://www.jrsoftware.org/ishelp/index.php?topic=compilercmdline
iscc /Qp InstallScript.iss
robocopy Output . *.exe /NFL /NDL /NJH /NJS /nc /ns /np
:END
echo .
endlocal
::**************************************************************************
SET /P THIRD=CLEAN BUILD FILES (Y/[N])?
IF /I "%THIRD%" NEQ "Y" GOTO END
echo .
:: clean
RMDIR Output /S /Q
RMDIR dist /S /Q
RMDIR build /S /Q
del mainwindow_rc.py /Q
::del mainwindow_rc.pyc /F /Q
:END
echo .
endlocal
::**************************************************************************
pause