Quick fix

Signed-off-by: larzie <lunar@lavache.com>
This commit is contained in:
larzie
2024-11-26 20:38:12 +03:00
committed by GitHub
parent 87cf878860
commit cc5f813f5e

View File

@@ -1,14 +1,14 @@
#!/bin/bash
set -ex
if command -v apt-get &> /dev/null
then
if command -v apt-get &> /dev/null; then
sudo apt-get update
sudo apt-get install -y xvfb
fi
ulimit -n 4096
# Check if xfvb is installed
if ! command -v Xvfb &> /dev/null; then
if ! test "$ZEN_CROSS_COMPILING"; then
Xvfb :2 -screen 0 1024x768x24 &
@@ -16,10 +16,11 @@ if ! command -v Xvfb &> /dev/null; then
export DISPLAY=:2
fi
export ZEN_RELEASE=1
pnpm build
pnpm build
else
echo "Xvfb could not be found, running without it"
echo "ASSUMING YOU ARE RUNNING THIS ON MACOS"
set -v
export ZEN_RELEASE=1
pnpm build