mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-13 16:35:43 +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 = ""
|
||||||
NUITKA_OPTIONS += " --enable-plugin=data-hiding" if have_nuitka_commercial() else ""
|
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"):
|
if build_type in ("gui", "viewer"):
|
||||||
NUITKA_OPTIONS += " --plugin-enable=tk-inter --disable-console"
|
NUITKA_OPTIONS += " --plugin-enable=tk-inter --disable-console"
|
||||||
else:
|
else:
|
||||||
NUITKA_OPTIONS += " --plugin-disable=tk-inter --nofollow-import-to=PySimpleGUI --nofollow-import-to=_tkinter --nofollow-import-to=npbackup.gui"
|
NUITKA_OPTIONS += " --plugin-disable=tk-inter --nofollow-import-to=PySimpleGUI --nofollow-import-to=_tkinter --nofollow-import-to=npbackup.gui"
|
||||||
if onefile:
|
if onefile:
|
||||||
NUITKA_OPTIONS += " --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":
|
if build_type == "gui":
|
||||||
|
|
Loading…
Add table
Reference in a new issue