Skip to content

Commit

Permalink
Updated according to upstream MR
Browse files Browse the repository at this point in the history
  • Loading branch information
gerbenvds committed Aug 26, 2022
1 parent 64d637a commit 8ae502c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@


set -e

BUILD_BASE=$(pwd)
VERSION=104.0.5112.97
CHANNEL=${1:-stable}

VERSION=$(curl -s https://omahaproxy.appspot.com/all.json | \
jq -r ".[] | select(.os == \"linux\") | .versions[] | select(.channel == \"$CHANNEL\") | .current_version" \
)

printf "LANG=en_US.utf-8\nLC_ALL=en_US.utf-8" >> /etc/environment

# install dependencies
yum groupinstall -y "Development Tools"
yum install -y \
alsa-lib-devel atk-devel binutils bison bluez-libs-devel brlapi-devel \
bzip2 bzip2-devel cairo-devel cmake cups-devel dbus-devel dbus-glib-devel \
expat-devel fontconfig-devel freetype-devel gcc-c++ git glib2-devel glibc \
gperf gtk3-devel htop httpd java-1.*.0-openjdk-devel libatomic libcap-devel \
libffi-devel libgcc libgnome-keyring-devel libjpeg-devel libstdc++ libuuid-devel \
gperf gtk3-devel httpd java-11-openjdk-devel libatomic libcap-devel \
libffi-devel libgcc libjpeg-devel libstdc++ libuuid-devel \
libX11-devel libxkbcommon-x11-devel libXScrnSaver-devel libXtst-devel mercurial \
mod_ssl ncurses-compat-libs nspr-devel nss-devel pam-devel pango-devel \
pciutils-devel php php-cli pkgconfig pulseaudio-libs-devel python python3 \
Expand Down Expand Up @@ -75,5 +78,4 @@ cp out/Headless/headless_shell "$BUILD_BASE/bin/headless-chromium-unstripped"
cd "$BUILD_BASE"

# strip symbols
strip -o "$BUILD_BASE/bin/headless-chromium" build/chromium/src/out/Headless/headless_shell

strip -o "$BUILD_BASE/bin/headless-chromium" build/chromium/src/out/Headless/headless_shell

0 comments on commit 8ae502c

Please sign in to comment.