From 8b136a18c7e969de613c9906f2af03b9e9f49087 Mon Sep 17 00:00:00 2001 From: Yichao Yu Date: Mon, 4 Apr 2022 18:08:38 -0400 Subject: [PATCH] Download AArch64 version of xulrunner --- config.sh | 1 + fetch_xulrunner.sh | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/config.sh b/config.sh index 6f0a5b5d..d287c7d9 100644 --- a/config.sh +++ b/config.sh @@ -13,6 +13,7 @@ MAC_RUNTIME_PATH="$DIR/xulrunner/Firefox.app" WIN32_RUNTIME_PATH="$DIR/xulrunner/firefox-win32" LINUX_i686_RUNTIME_PATH="$DIR/xulrunner/firefox-i686" LINUX_x86_64_RUNTIME_PATH="$DIR/xulrunner/firefox-x86_64" +LINUX_aarch64_RUNTIME_PATH="$DIR/xulrunner/firefox-aarch64" PDF_TOOLS_VERSION="0.0.5" PDF_TOOLS_URL="https://zotero-download.s3.amazonaws.com/pdftools/pdftools-$PDF_TOOLS_VERSION.tar.gz" diff --git a/fetch_xulrunner.sh b/fetch_xulrunner.sh index 9c05d9bc..37b7f105 100755 --- a/fetch_xulrunner.sh +++ b/fetch_xulrunner.sh @@ -254,6 +254,25 @@ if [ $BUILD_LINUX == 1 ]; then cd .. rm "firefox-$GECKO_VERSION.tar.bz2" + + curl -OL "https://answers.launchpad.net/~mozillateam/+archive/ubuntu/ppa/+build/17514808/+files/firefox-esr_60.9.0esr+build1-0ubuntu0.14.04.1_arm64.deb" + rm -rf firefox-aarch64{,-tmp} + mkdir firefox-aarch64-tmp + cd firefox-aarch64-tmp + ar x ../firefox-esr_60.9.0esr+build1-0ubuntu0.14.04.1_arm64.deb + tar xvf data.tar.* + mv usr/lib/firefox-esr ../firefox-aarch64 + + cd ../firefox-aarch64 + mv firefox-esr firefox + rm firefox.sh + rm -rf distribution + modify_omni linux64 + extract_devtools + cd .. + + rm firefox-esr_60.9.0esr+build1-0ubuntu0.14.04.1_arm64.deb + rm -rf firefox-aarch64-tmp fi echo Done