2023-06-04 19:45:17 +01:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
set scriptdir=%~dp0
|
|
|
|
set scriptdir=%scriptdir:~0,-1%
|
|
|
|
|
|
|
|
set venvname=installer
|
|
|
|
set venvscripts=%scriptdir%\%venvname%\Scripts
|
|
|
|
|
|
|
|
set venvpython=%venvscripts%\python.exe
|
|
|
|
set venvpyinstaller=%venvscripts%\pyinstaller.exe
|
|
|
|
|
|
|
|
cd /D "%scriptdir%"
|
|
|
|
|
|
|
|
python -m venv "%venvname%"
|
|
|
|
|
|
|
|
"%venvpython%" -m pip install --upgrade pyinstaller -r requirements-win32.txt
|
|
|
|
|
|
|
|
"%venvpyinstaller%" -y --clean --log-level WARN -F --add-binary "C:\Windows\System32\libusb0.dll;." -w -i nxdt.ico nxdt_host.py
|
2021-03-20 01:59:53 +00:00
|
|
|
|
2021-03-20 04:47:57 +00:00
|
|
|
move dist\nxdt_host.exe nxdt_host.exe
|
2021-03-20 01:59:53 +00:00
|
|
|
|
2021-03-20 04:47:57 +00:00
|
|
|
rmdir /s /q __pycache__
|
|
|
|
rmdir /s /q build
|
|
|
|
rmdir /s /q dist
|
2023-06-04 19:45:17 +01:00
|
|
|
rmdir /s /q installer
|
2021-03-20 04:47:57 +00:00
|
|
|
del nxdt_host.spec
|
2023-06-04 19:45:17 +01:00
|
|
|
|
|
|
|
pause
|