playwright/browser_patches/webkit/build.sh

29 lines
696 B
Bash
Raw Normal View History

2019-11-19 03:18:28 +01:00
#!/bin/bash
set -e
set +x
2019-11-20 01:08:27 +01:00
trap "cd $(pwd -P)" EXIT
2019-11-20 01:58:09 +01:00
cd "$(dirname $0)"
cd "checkout"
2019-11-19 03:18:28 +01:00
2019-11-22 02:06:57 +01:00
BUILD_BRANCH="playwright-build"
if ! [[ $(git rev-parse --abbrev-ref HEAD) == "$BUILD_BRANCH" ]]; then
echo "ERROR: Cannot build any branch other than $BUILD_BRANCH"
2019-11-19 03:18:28 +01:00
exit 1;
else
2019-11-22 02:06:57 +01:00
echo "-- checking git branch is $BUILD_BRANCH - OK"
2019-11-19 03:18:28 +01:00
fi
if [[ "$(uname)" == "Darwin" ]]; then
./Tools/Scripts/build-webkit --release
elif [[ "$(uname)" == "Linux" ]]; then
if ! [[ -d ./WebKitBuild ]]; then
yes | DEBIAN_FRONTEND=noninteractive ./Tools/Scripts/update-webkitgtk-libs
fi
2019-11-19 03:18:28 +01:00
./Tools/Scripts/build-webkit --gtk --release MiniBrowser
else
echo "ERROR: cannot upload on this platform!" 1>&2
exit 1;
fi