Update test_nuitka_binary.py

This commit is contained in:
KnugiHK
2025-12-27 17:26:03 +08:00
parent 10691b954a
commit b39aae365a

View File

@@ -36,14 +36,10 @@ def test_nuitka_binary():
Tests the creation and execution of a Nuitka-compiled binary.
"""
nuitka_command = [
"python", "-m", "nuitka",
"--no-deployment-flag=self-execution",
"--onefile",
"python", "-m", "nuitka", "--onefile", "--assume-yes-for-downloads",
"--include-data-file=./Whatsapp_Chat_Exporter/whatsapp.html=./Whatsapp_Chat_Exporter/whatsapp.html",
"--assume-yes-for-downloads",
"--follow-imports",
"Whatsapp_Chat_Exporter/__main__.py",
"--output-filename=wtsexporter.exe" # use .exe on all platforms for compatibility
"Whatsapp_Chat_Exporter",
"--output-filename=wtsexporter_linux_x64.exe" # use .exe on all platforms for compatibility
]
compile_result = subprocess.run(