Skip to content

Commit

Permalink
Fix missing linux x86_64 platform
Browse files Browse the repository at this point in the history
  • Loading branch information
sarg3nt committed May 23, 2024
1 parent 75bbd02 commit c50f936
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ get_arch() {
get_download_name() {
local -r platform="$(get_platform)"
local -r arch="$(get_arch)"

if [[ ${platform} == "linux" ]] && [[ ${arch} == "arm" ]]; then
echo "tealdeer-linux-arm-musleabihf"
if [[ ${platform} == "linux" ]] && [[ ${arch} == "x86_64" ]]; then
echo "tealdeer-linux-x86_64-musl"
elif [[ ${platform} == "macos" ]] && [[ ${arch} == "x86_64" ]]; then
echo "tealdeer-macos-x86_64"
elif [[ ${platform} == "linux" ]] && [[ ${arch} == "arm" ]]; then
Expand All @@ -74,6 +73,9 @@ get_download_name() {
echo "tealdeer-linux-armv7-musleabihf"
elif [[ ${platform} == "windows" ]] && [[ ${arch} == "x86_64" ]]; then
echo "tealdeer-windows-x86_64-msvc.exe"
else
fail "Unknown or unsupported platform ${platform}-${arch} detected."
fi
}

download_release() {
Expand Down

0 comments on commit c50f936

Please sign in to comment.