diff --git a/.gitignore b/.gitignore index f699370..8fb1840 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ build -host/nxdt_host +host/__pycache__ +host/build +host/dist host/nxdumptool *.elf *.nacp @@ -10,6 +12,7 @@ host/nxdumptool *.lst *.tar.bz2 *.log -*.zip +*.spec +*.exe /code_templates/tmp/* /source/main.c diff --git a/host/windows_make_standalone.bat b/host/windows_make_standalone.bat index c3138a5..f1a6646 100644 --- a/host/windows_make_standalone.bat +++ b/host/windows_make_standalone.bat @@ -1,10 +1,8 @@ -rmdir /s /q nxdt_host -mkdir nxdt_host +pyinstaller -y --clean --log-level WARN -F --add-binary "C:\Windows\System32\libusb0.dll;." -w -i nxdt.ico nxdt_host.py -cxfreeze nxdt_host.py -s --base-name=Win32GUI --target-dir=nxdt_host --icon=nxdt.ico - -copy ..\README.md nxdt_host -copy ..\LICENSE.md nxdt_host - -python -m zipfile -c nxdt_host.zip nxdt_host +move dist\nxdt_host.exe nxdt_host.exe +rmdir /s /q __pycache__ +rmdir /s /q build +rmdir /s /q dist +del nxdt_host.spec