From 41250474f32b97e67f7b5914cb4b1119b75dc417 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sun, 23 Jun 2024 12:27:08 +0530 Subject: [PATCH] Improve support for firebird --- src/scripts/extensions/firebird.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/scripts/extensions/firebird.sh b/src/scripts/extensions/firebird.sh index 065afb3a0..3c391e954 100644 --- a/src/scripts/extensions/firebird.sh +++ b/src/scripts/extensions/firebird.sh @@ -1,11 +1,14 @@ 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) + firebird_tag='v5.0.0' + arch_name='x64' + arch="$(uname -m)" + [[ "$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 - sudo find /Library/Frameworks/Firebird.framework -name '*.h' -exec cp "{}" /opt/firebird/include \; + sudo cp -a /Library/Frameworks/Firebird.framework/Headers/* /opt/firebird/include/ sudo find /Library/Frameworks/Firebird.framework -name '*.dylib' -exec cp "{}" /opt/firebird/lib \; }