From 643847be39cb95e56c0e29c5991ce724fcfded6a Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Sat, 20 Jan 2024 23:11:21 +0100 Subject: [PATCH] host: drop Nuitka's "--onefile" arg Fixes false-positive AV warnings. --- .gitignore | 5 ++--- host/windows_make_standalone.bat | 6 ++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 1e15bce..9e87d58 100644 --- a/.gitignore +++ b/.gitignore @@ -2,9 +2,7 @@ build host/__pycache__ host/standalone -host/nxdt_host.build -host/nxdt_host.dist -host/nxdt_host.onefile-build +host/nxdt_host* host/nxdumptool *.elf *.nacp @@ -16,6 +14,7 @@ host/nxdumptool *.log *.spec *.exe +*.7z *.code-workspace # TODO: remove this after the PoC builds are no longer needed. diff --git a/host/windows_make_standalone.bat b/host/windows_make_standalone.bat index 3651777..0b64e3b 100644 --- a/host/windows_make_standalone.bat +++ b/host/windows_make_standalone.bat @@ -14,11 +14,13 @@ python -m venv "%venvname%" "%venvpython%" -m pip install --upgrade nuitka -r requirements-win32.txt -"%venvpython%" -m nuitka --standalone --onefile --deployment --disable-console --windows-icon-from-ico=nxdt.ico --enable-plugin=tk-inter nxdt_host.py +"%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\* rmdir /s /q nxdt_host.build rmdir /s /q nxdt_host.dist -rmdir /s /q nxdt_host.onefile-build rmdir /s /q standalone pause