-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
34 lines (26 loc) · 952 Bytes
/
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
@echo off
rd /s /q Release
md Release
echo "********************copy files********************"
copy urls.txt Release
copy whitelist.txt Release
copy blacklist.txt Release
copy MetArtDownloader.config.ini Release
echo "********************build start********************"
pip install -r Requirements
pyinstaller -F -i metart.ico MetArtDownloader.py
move /y dist\MetArtDownloader.exe Release\MetArtDownloader.exe
pyinstaller -F -w -i metart.ico MetArtDownloader.py
move /y dist\MetArtDownloader.exe Release\MetArtDownloaderSlient.exe
:: echo "********************built********************"
:: clean
echo "********************cleaning temp files********************"
rd /s /q build
rd /s /q __pycache__
del /q MetArtDownloader.spec
rd /s /q dist
::
:: "C:\Program Files\7-Zip\7z.exe" a MetArtDownloader.7z Release
:: move /y MetArtDownloader.7z Release\MetArtDownloader.7z
echo "********************succeed********************"
pause