Skip to content

Commit b9f1db4

Browse files
committed
Improve support for firebird
1 parent 588b5da commit b9f1db4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/scripts/extensions/firebird.sh

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
add_firebird_client_darwin() {
2-
firebird_tag='R3_0_7'
3-
pkg_name=$(get -s -n "" https://api.github.com/repos/FirebirdSQL/firebird/releases/tags/"$firebird_tag" | grep -Eo "Firebird-.*.pkg" | head -n 1)
4-
[ -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)
2+
firebird_tag='v5.0.0'
3+
arch_name='x64'
4+
arch="$(uname -m)"
5+
[[ "$arch" = "arm64" || "$arch" = "aarch64" ]] && arch_name='arm64'
6+
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)
7+
[ -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)
58
get -q -e "/tmp/firebird.pkg" https://github.com/FirebirdSQL/firebird/releases/download/"$firebird_tag"/"$pkg_name"
69
sudo installer -pkg /tmp/firebird.pkg -target /
710
sudo mkdir -p /opt/firebird/include /opt/firebird/lib
8-
sudo find /Library/Frameworks/Firebird.framework -name '*.h' -exec cp "{}" /opt/firebird/include \;
11+
sudo cp -a /Library/Frameworks/Firebird.framework/Headers/* /opt/firebird/include/
912
sudo find /Library/Frameworks/Firebird.framework -name '*.dylib' -exec cp "{}" /opt/firebird/lib \;
1013
}
1114

0 commit comments

Comments
 (0)