Skip to content

Commit

Permalink
Use arm64 build if necessary even if bash isn't installed
Browse files Browse the repository at this point in the history
  • Loading branch information
bovine3dom committed Oct 6, 2024
1 parent 574209d commit 9169bc5
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions installers/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,6 @@ run() {
XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/tridactyl"

case "$OSTYPE" in
linux-gnu|linux-musl|linux|freebsd*)
ARCHITECTURE="$(uname -m)"
manifest_home="$HOME/.mozilla/native-messaging-hosts/"
case "$ARCHITECTURE" in
aarch64)
binary_suffix="arm64-Linux"
;;
*)
binary_suffix="Linux"
;;
esac
;;
linux-gnueabihf)
manifest_home="$HOME/.mozilla/native-messaging-hosts/"
binary_suffix="armhf-Linux"
Expand All @@ -45,11 +33,19 @@ run() {
manifest_home="$HOME/Library/Application Support/Mozilla/NativeMessagingHosts/"
binary_suffix="macOS"
;;
*)
linux-gnu|linux-musl|linux|freebsd*|*)
# Fallback to default Linux location for unknown OSTYPE
# TODO: fall back to old Python messenger
ARCHITECTURE="$(uname -m)"
manifest_home="$HOME/.mozilla/native-messaging-hosts/"
binary_suffix="Linux"
case "$ARCHITECTURE" in
aarch64)
binary_suffix="arm64-Linux"
;;
*)
binary_suffix="Linux"
;;
esac
;;
esac

Expand Down

0 comments on commit 9169bc5

Please sign in to comment.