forked from marticliment/ElevenClock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
28 lines (28 loc) · 1.06 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
python -m pip install -r requirements.txt
python -m pip install setuptools==49.1.3
python -m pip uninstall python-dateutil -y
python -m easy_install python-dateutil
xcopy elevenclock elevenclock_bin /E /H /C /I
cd elevenclock_bin
python -m compileall -b .
del /S *.py
rmdir /Q /S __pycache__
rmdir /Q /S external\__pycache__
rmdir /Q /S lang\__pycache__
rmdir /Q /S build
rmdir /Q /S dist
python -m PyInstaller ../elevenclock/__init__.py --runtime-tmpdir "%appdata%/ElevenClock/runtime-files" --icon "resources/icon.ico" --add-binary "*.pyc;." --add-data "resources;resources" --add-data "lang;lang" --clean --onefile --windowed --version-file ../elevenclock-version-info --exclude-module PySide6 --exclude-module tk
rem --add-data "%homedrive%%homepath%\AppData\Local\Programs\Python\Python39\Lib\site-packages\PySide6\plugins;PySide6/plugins"
cd dist
move __init__.exe ../../
cd ..
rmdir /Q /S build
rmdir /Q /S dist
del __init__.spec
cd ..
rmdir /Q /S elevenclock_bin
taskkill /im ElevenClock.exe /f
del ElevenClock.exe
rename __init__.exe ElevenClock.exe
ElevenClock.exe
pause