2023-06-04 19:45:17 +01:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
set scriptdir=%~dp0
|
|
|
|
set scriptdir=%scriptdir:~0,-1%
|
|
|
|
|
2023-11-26 21:10:42 +00:00
|
|
|
set venvname=standalone
|
2023-06-04 19:45:17 +01:00
|
|
|
set venvscripts=%scriptdir%\%venvname%\Scripts
|
|
|
|
|
|
|
|
set venvpython=%venvscripts%\python.exe
|
|
|
|
|
|
|
|
cd /D "%scriptdir%"
|
|
|
|
|
|
|
|
python -m venv "%venvname%"
|
|
|
|
|
2023-11-26 21:10:42 +00:00
|
|
|
"%venvpython%" -m pip install --upgrade nuitka -r requirements-win32.txt
|
2023-06-04 19:45:17 +01:00
|
|
|
|
2024-01-20 22:11:21 +00:00
|
|
|
"%venvpython%" -m nuitka --standalone --deployment --disable-console --windows-icon-from-ico=nxdt.ico --enable-plugin=tk-inter nxdt_host.py
|
|
|
|
|
|
|
|
del /F /Q nxdt_host.7z
|
|
|
|
7z a nxdt_host.7z .\nxdt_host.dist\*
|
2021-03-20 01:59:53 +00:00
|
|
|
|
2023-11-26 21:10:42 +00:00
|
|
|
rmdir /s /q nxdt_host.build
|
|
|
|
rmdir /s /q nxdt_host.dist
|
|
|
|
rmdir /s /q standalone
|
2023-06-04 19:45:17 +01:00
|
|
|
|
|
|
|
pause
|