forked from namecoin/nmcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_windows_console.bat
33 lines (26 loc) · 1.12 KB
/
build_windows_console.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
C:\Python27\Scripts\pyinstaller -p lib;plugin;service ^
--hidden-import=asyncore --hidden-import=win32gui_struct --hidden-import=win32gui ^
--hidden-import=winxpgui --hidden-import=commctrl --hidden-import=pywintypes ^
--hidden-import=bottle --hidden-import=cgi --hidden-import=hmac --hidden-import=Cookie ^
--hidden-import=wsgiref --hidden-import=wsgiref.simple_server --hidden-import=wsgiref.handlers ^
--hidden-import=wsgiref.util --hidden-import=wsgiref.headers ^
--noconfirm --icon=./lib/icon.ico nmcontrol.py
@if %errorlevel% EQU 0 goto continue
@pause
:continue
mkdir dist\nmcontrol\lib\
mkdir dist\nmcontrol\plugin\
mkdir dist\nmcontrol\service\
xcopy lib dist\nmcontrol\lib /s /e /h /y
xcopy plugin dist\nmcontrol\plugin /s /e /h /y
xcopy service dist\nmcontrol\service /s /e /h /y
@rem pyinstaller 2.1
rmdir dist\nmcontrolwin\_MEI\tk\images /s /q
rmdir dist\nmcontrolwin\_MEI\tcl\tzdata /s /q
rmdir dist\nmcontrolwin\_MEI\tcl\msgs /s /q
@rem pyinstaller 3.0
rmdir dist\nmcontrolwin\tk\images /s /q
rmdir dist\nmcontrolwin\tcl\tzdata /s /q
rmdir dist\nmcontrolwin\tcl\msgs /s /q
del dist\*.pyc /s /q
pause