mirror of
https://github.com/netinvent/npbackup.git
synced 2025-02-23 22:15:43 +08:00
!fixup Add --no-gui on arm/arm64 builds
This commit is contained in:
parent
38e3877f91
commit
af1b7c0249
1 changed files with 3 additions and 2 deletions
|
@ -2,18 +2,19 @@
|
|||
|
||||
# This is an example compiler script
|
||||
|
||||
machine="$(printf %.3s "$(uname -m)")"
|
||||
machine="$(uname -m)"
|
||||
|
||||
cd /opt/npbackup
|
||||
|
||||
OLD_PYTHONPATH="$PYTHONPATH"
|
||||
export PYTHONPATH=/opt/npbackup
|
||||
|
||||
if [ "$machine" = "arm" ]; then
|
||||
if [ "$(printf %.3s $machine)" = "arm" ] || [ "$machine" = "aarch64" ]; then
|
||||
opts=" --no-gui"
|
||||
echo "BUILDING WITHOUT GUI because arm detected"
|
||||
else
|
||||
otps=""
|
||||
echo "BUILDING WITH GUI"
|
||||
fi
|
||||
|
||||
/opt/npbackup/venv/bin/python bin/compile.py --audience all $opts
|
||||
|
|
Loading…
Reference in a new issue