mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-10 23:15:37 +08:00
Add --no-gui on arm/arm64 builds
This commit is contained in:
parent
5cd355b019
commit
38e3877f91
1 changed files with 10 additions and 1 deletions
|
@ -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"
|
Loading…
Add table
Reference in a new issue