Skip to content

ENH: Support arm64 on Darwin (Apple M1) #24

Description

@davidjeddy
~ % sh install.sh                       
sh: install.sh: No such file or directory
~ % # Download the script
curl -sSLo install.sh https://install.hclq.sh

# Inspect the script before executing, as is good practice
# for code from the internet, regardless of trust!
less install.sh
...
# Run it!
sh install.sh
Unsupported or undetected platform: 'arm64'
 ~ % 

Edited platform_check() in install.sh

platform_check() {
  # OS and ARCH variables also used to download binary in main function
  OS="$(uname | awk '{print tolower($0)}')"
  ARCH="$(uname -m)"
  case "$ARCH" in
    amd64) ARCH=amd64;;
    x86_64) ARCH=amd64;;
    i386) ARCH=386;;
    i686) ARCH=386;;
    arm) ARCH=arm;;
    arm64) ARCH=arm;;
    *) fail "Unsupported or undetected platform: '$ARCH'";;
  esac
}

Tried install process again:

sh install.sh
Installing /usr/local/bin/hclq
hclq is not available for OS 'darwin' on architecture 'arm'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions