mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
chore: Update alpha-build.sh script to handle xvfb-run not found and set LLVM_PROFDATA path conditionally
This commit is contained in:
12
.github/workflows/src/alpha-build.sh
vendored
12
.github/workflows/src/alpha-build.sh
vendored
@@ -1,4 +1,4 @@
|
||||
set -x
|
||||
set -ex
|
||||
|
||||
export ZEN_RELEASE=1
|
||||
|
||||
@@ -13,16 +13,12 @@ if ! command -v Xvfb &> /dev/null
|
||||
then
|
||||
ulimit -n 4096
|
||||
Xvfb :2 -screen 0 1024x768x24 &
|
||||
# Check if dir exists
|
||||
if [ -d $HOME/win-cross ]
|
||||
then
|
||||
export LLVM_PROFDATA="$HOME/win-cross/clang/bin/llvm-profdata"
|
||||
else
|
||||
export LLVM_PROFDATA=$HOME/.mozbuild/clang/bin/llvm-profdata
|
||||
fi
|
||||
export LLVM_PROFDATA=$HOME/.mozbuild/clang/bin/llvm-profdata
|
||||
export DISPLAY=:2
|
||||
pnpm build
|
||||
else
|
||||
echo "Xvfb could not be found, running without it"
|
||||
echo "ASSUMING YOU ARE RUNNING THIS ON MACOS"
|
||||
set -v
|
||||
pnpm build
|
||||
fi
|
||||
|
@@ -66,6 +66,9 @@ if test "$ZEN_RELEASE"; then
|
||||
ac_add_options --enable-lto=full
|
||||
fi
|
||||
|
||||
export MOZ_PGO=1
|
||||
ac_add_options MOZ_PGO=1
|
||||
|
||||
mk_add_options MOZILLA_OFFICIAL=1
|
||||
|
||||
MOZILLA_OFFICIAL=1
|
||||
|
@@ -19,11 +19,6 @@ if ! test "$ZEN_CROSS_COMPILING"; then
|
||||
export STRIP_FLAGS="--strip-debug --strip-unneeded"
|
||||
fi
|
||||
|
||||
if test "$ZEN_RELEASE"; then
|
||||
export MOZ_PGO=1
|
||||
ac_add_options MOZ_PGO=1
|
||||
fi
|
||||
|
||||
# Disable telemetry and tracking
|
||||
mk_add_options MOZ_TELEMETRY_REPORTING=
|
||||
mk_add_options MOZ_DATA_REPORTING=
|
||||
|
Reference in New Issue
Block a user