mirror of
https://github.com/netinvent/npbackup.git
synced 2024-11-10 09:03:02 +08:00
Compile as standalone by default
This commit is contained in:
parent
6b209b3fc1
commit
1b8713463e
1 changed files with 5 additions and 4 deletions
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue