File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
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)
5
8
get -q -e " /tmp/firebird.pkg" https://github.com/FirebirdSQL/firebird/releases/download/" $firebird_tag " /" $pkg_name "
6
9
sudo installer -pkg /tmp/firebird.pkg -target /
7
10
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/
9
12
sudo find /Library/Frameworks/Firebird.framework -name ' *.dylib' -exec cp " {}" /opt/firebird/lib \;
10
13
}
11
14
You can’t perform that action at this time.
0 commit comments