mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-09 06:43:27 +00:00
31 lines
677 B
Bash
31 lines
677 B
Bash
#!/bin/bash
|
|
|
|
set -xe
|
|
|
|
if command -v apt-get &> /dev/null; then
|
|
sudo apt-get install python3-launchpadlib
|
|
sudo apt-get update
|
|
sudo apt-get install -y xvfb libnvidia-egl-wayland1 mesa-utils libgl1-mesa-dri
|
|
fi
|
|
|
|
. $HOME/.cargo/env
|
|
|
|
ulimit -n 4096
|
|
|
|
if command -v Xvfb &> /dev/null; then
|
|
if ! test "$ZEN_CROSS_COMPILING"; then
|
|
Xvfb :2 -nolisten tcp -noreset -screen 0 1024x768x24 &
|
|
export LLVM_PROFDATA=$HOME/.mozbuild/clang/bin/llvm-profdata
|
|
export DISPLAY=:2
|
|
fi
|
|
export ZEN_RELEASE=1
|
|
npm run 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
|
|
npm run build
|
|
fi
|