diff --git a/bin/compile.py b/bin/compile.py index 153671e..74a97eb 100644 --- a/bin/compile.py +++ b/bin/compile.py @@ -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":