chore: Update alpha-build.sh script to handle xvfb-run not found and enable LTO only when not cross-compiling

This commit is contained in:
Mauro Balades
2024-07-19 22:01:55 +02:00
parent 16f7b06cec
commit 93ba4e0638
3 changed files with 13 additions and 8 deletions

View File

@@ -3,8 +3,9 @@ export ZEN_RELEASE=1
# Check if xfvb is installed
if ! command -v xvfb-run &> /dev/null
then
echo "xvfb-run could not be found, running without it"
pnpm build
echo "xvfb-run could not be found, running without it"
pnpm build
else
export DISPLAY=:2
xvfb-run -s "-screen 0 1920x1080x24 -nolisten local" pnpm build
fi