From 735ae1cf09c4820b4576db984f562711bcf231b8 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 21 Feb 2025 06:31:01 -0500 Subject: [PATCH] Update build scripts for Linux ARM64 This doesn't include an ARM updater, so those lines in build.sh need to be commented out for the build to succeed. Addresses #3515 --- app/assets/application.ini | 2 +- app/build.sh | 6 ++--- app/config.sh | 6 ++--- app/scripts/build_and_run | 6 ++++- app/scripts/fetch_xulrunner | 33 +++++++++++++++--------- app/update-packaging/build_autoupdate.sh | 22 +++++++++------- 6 files changed, 46 insertions(+), 29 deletions(-) diff --git a/app/assets/application.ini b/app/assets/application.ini index 83e22d9d49..c9db279f85 100644 --- a/app/assets/application.ini +++ b/app/assets/application.ini @@ -8,7 +8,7 @@ ID=zotero@zotero.org [Gecko] MinVersion=128.0 -MaxVersion=128.99.* +MaxVersion=140.99.* [XRE] EnableExtensionManager=1 diff --git a/app/build.sh b/app/build.sh index cc378dc011..6260be12ed 100755 --- a/app/build.sh +++ b/app/build.sh @@ -925,7 +925,7 @@ if [ $BUILD_LINUX == 1 ]; then if [[ "${ZOTERO_TEST:-}" = "1" ]] || [[ "${SKIP_32:-}" = "1" ]]; then archs="x86_64" else - archs="i686 x86_64" + archs="i686 x86_64 arm64" fi for arch in $archs; do @@ -982,9 +982,9 @@ if [ $BUILD_LINUX == 1 ]; then if [ $PACKAGE == 1 ]; then # Create tar - rm -f "$DIST_DIR/Zotero-${VERSION}_linux-$arch.tar.bz2" + rm -f "$DIST_DIR/Zotero-${VERSION}_linux-$arch.tar.xz" cd "$STAGE_DIR" - tar -cjf "$DIST_DIR/Zotero-${VERSION}_linux-$arch.tar.bz2" "Zotero_linux-$arch" + tar -cJf "$DIST_DIR/Zotero-${VERSION}_linux-$arch.tar.xz" "Zotero_linux-$arch" fi done fi diff --git a/app/config.sh b/app/config.sh index 9d9c7afad6..a9bb0e3559 100644 --- a/app/config.sh +++ b/app/config.sh @@ -1,9 +1,9 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Version of Gecko to build with -GECKO_VERSION_MAC="128.9.0esr" -GECKO_VERSION_LINUX="128.9.0esr" -GECKO_VERSION_WIN="128.9.0esr" +GECKO_VERSION_MAC="128.7.0esr" +GECKO_VERSION_LINUX="140.0esr" +GECKO_VERSION_WIN="128.6.0esr" RUST_VERSION=1.78.0 # URL prefix for custom builds of Firefox components diff --git a/app/scripts/build_and_run b/app/scripts/build_and_run index c871f42dba..154ad95670 100755 --- a/app/scripts/build_and_run +++ b/app/scripts/build_and_run @@ -75,7 +75,11 @@ fi if [ "`uname`" = "Darwin" ]; then command="Zotero.app/Contents/MacOS/zotero" elif [ "`uname`" = "Linux" ]; then - command="Zotero_linux-x86_64/zotero" + if [[ "`uname -m`" = "aarch64" ]]; then + command="Zotero_linux-arm64/zotero" + else + command="Zotero_linux-x86_64/zotero" + fi elif [ "`uname -o 2> /dev/null`" = "Cygwin" ]; then command="Zotero_win-x64/zotero.exe" else diff --git a/app/scripts/fetch_xulrunner b/app/scripts/fetch_xulrunner index d32fdb3ab0..93a179572c 100755 --- a/app/scripts/fetch_xulrunner +++ b/app/scripts/fetch_xulrunner @@ -395,15 +395,15 @@ function modify_omni { ' \ - '