Compile as standalone by default

This commit is contained in:
Orsiris de Jong 2024-04-27 19:50:47 +02:00
parent 6b209b3fc1
commit 1b8713463e

View file

@ -257,16 +257,17 @@ def compile(arch: str, audience: str, build_type: str, onefile: bool):
NUITKA_OPTIONS = ""
NUITKA_OPTIONS += " --enable-plugin=data-hiding" if have_nuitka_commercial() else ""
# Stupid fix for synology RS816 where /tmp is mounted with `noexec`.
if "arm" in arch:
NUITKA_OPTIONS += " --onefile-tempdir-spec=/var/tmp"
if build_type in ("gui", "viewer"):
NUITKA_OPTIONS += " --plugin-enable=tk-inter --disable-console"
else:
NUITKA_OPTIONS += " --plugin-disable=tk-inter --nofollow-import-to=PySimpleGUI --nofollow-import-to=_tkinter --nofollow-import-to=npbackup.gui"
if onefile:
NUITKA_OPTIONS += " --onefile"
# Stupid fix for synology RS816 where /tmp is mounted with `noexec`.
if "arm" in arch:
NUITKA_OPTIONS += " --onefile-tempdir-spec=/var/tmp"
else:
NUITKA_OPTIONS += " --standalone"
if build_type == "gui":