From e07d9d2082335f9b7f458e2a985b2c6718736ab0 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sun, 23 Jun 2024 08:34:44 +0530 Subject: [PATCH] Fix firebird support on macos-14 --- src/scripts/extensions/firebird.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/scripts/extensions/firebird.sh b/src/scripts/extensions/firebird.sh index 065afb3a0..1499a0760 100644 --- a/src/scripts/extensions/firebird.sh +++ b/src/scripts/extensions/firebird.sh @@ -1,7 +1,10 @@ add_firebird_client_darwin() { firebird_tag='R3_0_7' - pkg_name=$(get -s -n "" https://api.github.com/repos/FirebirdSQL/firebird/releases/tags/"$firebird_tag" | grep -Eo "Firebird-.*.pkg" | head -n 1) - [ -z "$pkg_name" ] && pkg_name=$(get -s -n "" https://github.com/FirebirdSQL/firebird/releases/expanded_assets/"$firebird_tag" | grep -Eo "Firebird-.*.pkg" | head -n 1) + arch="$(uname -m)" + arch_name="x64" + [[ "$arch" = "arm64" || "$arch" = "aarch64" ]] && arch_name="arm64" + pkg_name=$(get -s -n "" https://api.github.com/repos/FirebirdSQL/firebird/releases/tags/"$firebird_tag" | grep -Eo "Firebird-.*.-$arch_name.pkg" | head -n 1) + [ -z "$pkg_name" ] && pkg_name=$(get -s -n "" https://github.com/FirebirdSQL/firebird/releases/expanded_assets/"$firebird_tag" | grep -Eo "Firebird-.*.-$arch_name.pkg" | head -n 1) get -q -e "/tmp/firebird.pkg" https://github.com/FirebirdSQL/firebird/releases/download/"$firebird_tag"/"$pkg_name" sudo installer -pkg /tmp/firebird.pkg -target / sudo mkdir -p /opt/firebird/include /opt/firebird/lib