Skip 32-bit Linux build if SKIP_32 env variable is set
This commit is contained in:
parent
a2e8be2af5
commit
7c25ab536f
2 changed files with 28 additions and 28 deletions
|
@ -819,7 +819,7 @@ fi
|
||||||
# Linux
|
# Linux
|
||||||
if [ $BUILD_LINUX == 1 ]; then
|
if [ $BUILD_LINUX == 1 ]; then
|
||||||
# Skip 32-bit build in tests
|
# Skip 32-bit build in tests
|
||||||
if [ "${ZOTERO_TEST:-}" = "1" ]; then
|
if [[ "${ZOTERO_TEST:-}" = "1" ]] || [[ "${SKIP_32:-}" = "1" ]]; then
|
||||||
archs="x86_64"
|
archs="x86_64"
|
||||||
else
|
else
|
||||||
archs="i686 x86_64"
|
archs="i686 x86_64"
|
||||||
|
|
|
@ -103,8 +103,6 @@ function get_utf16_chars {
|
||||||
# Make various modifications to the stock Firefox app
|
# Make various modifications to the stock Firefox app
|
||||||
#
|
#
|
||||||
function modify_omni {
|
function modify_omni {
|
||||||
local platform=$1
|
|
||||||
|
|
||||||
mkdir omni
|
mkdir omni
|
||||||
mv omni.ja omni
|
mv omni.ja omni
|
||||||
cd omni
|
cd omni
|
||||||
|
@ -458,33 +456,35 @@ fi
|
||||||
if [ $BUILD_LINUX == 1 ]; then
|
if [ $BUILD_LINUX == 1 ]; then
|
||||||
GECKO_VERSION="$GECKO_VERSION_LINUX"
|
GECKO_VERSION="$GECKO_VERSION_LINUX"
|
||||||
DOWNLOAD_URL="https://ftp.mozilla.org/pub/firefox/releases/$GECKO_VERSION"
|
DOWNLOAD_URL="https://ftp.mozilla.org/pub/firefox/releases/$GECKO_VERSION"
|
||||||
|
|
||||||
rm -rf firefox
|
|
||||||
|
|
||||||
# Include 32-bit build if not in CI
|
# Include 32-bit build if not in CI
|
||||||
if [ -z "${CI:-}" ]; then
|
if [[ "${CI:-}" = "1" ]] || [[ "${SKIP_32:-}" = "1" ]]; then
|
||||||
curl -O "$DOWNLOAD_URL/linux-i686/en-US/firefox-$GECKO_VERSION.tar.bz2"
|
arches="x86_64"
|
||||||
rm -rf firefox-i686
|
else
|
||||||
tar xvf firefox-$GECKO_VERSION.tar.bz2
|
arches="i686 x86_64"
|
||||||
mv firefox firefox-i686
|
|
||||||
|
|
||||||
pushd firefox-i686
|
|
||||||
modify_omni linux32
|
|
||||||
popd
|
|
||||||
|
|
||||||
rm "firefox-$GECKO_VERSION.tar.bz2"
|
|
||||||
fi
|
fi
|
||||||
|
for arch in $arches; do
|
||||||
curl -O "$DOWNLOAD_URL/linux-x86_64/en-US/firefox-$GECKO_VERSION.tar.bz2"
|
xdir="firefox-$arch"
|
||||||
rm -rf firefox-x86_64
|
rm -rf $xdir
|
||||||
tar xvf firefox-$GECKO_VERSION.tar.bz2
|
|
||||||
mv firefox firefox-x86_64
|
archived_file="firefox-$GECKO_VERSION-$arch.tar.bz2"
|
||||||
|
if [ -e "$archived_file" ]; then
|
||||||
pushd firefox-x86_64
|
echo "Using $archived_file"
|
||||||
modify_omni linux64
|
cp "$archived_file" "firefox-$GECKO_VERSION.tar.bz2"
|
||||||
popd
|
else
|
||||||
echo $($SCRIPT_DIR/xulrunner_hash -p l) > hash-linux
|
curl -O "$DOWNLOAD_URL/linux-$arch/en-US/firefox-$GECKO_VERSION.tar.bz2"
|
||||||
rm "firefox-$GECKO_VERSION.tar.bz2"
|
fi
|
||||||
|
|
||||||
|
tar xvf firefox-$GECKO_VERSION.tar.bz2
|
||||||
|
mv firefox firefox-$arch
|
||||||
|
|
||||||
|
pushd firefox-$arch
|
||||||
|
modify_omni
|
||||||
|
popd
|
||||||
|
echo $($SCRIPT_DIR/xulrunner_hash -p l) > hash-linux
|
||||||
|
rm "firefox-$GECKO_VERSION.tar.bz2"
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo Done
|
echo Done
|
||||||
|
|
Loading…
Add table
Reference in a new issue