From 38e3877f91d12c404bdf497b49eebf9f74c2685d Mon Sep 17 00:00:00 2001 From: Orsiris de Jong Date: Thu, 30 Mar 2023 01:57:41 +0200 Subject: [PATCH] Add --no-gui on arm/arm64 builds --- bin/COMPILE.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bin/COMPILE.sh b/bin/COMPILE.sh index 42255bb..5cc0adb 100644 --- a/bin/COMPILE.sh +++ b/bin/COMPILE.sh @@ -2,11 +2,20 @@ # This is an example compiler script +machine="$(printf %.3s "$(uname -m)")" + cd /opt/npbackup OLD_PYTHONPATH="$PYTHONPATH" export PYTHONPATH=/opt/npbackup -/opt/npbackup/venv/bin/python bin/compile.py --audience all +if [ "$machine" = "arm" ]; then + opts=" --no-gui" + echo "BUILDING WITHOUT GUI because arm detected" +else + otps="" +fi + +/opt/npbackup/venv/bin/python bin/compile.py --audience all $opts export PYTHONPATH="$OLD_PYTHONPATH" \ No newline at end of file