up
up copied to clipboard
Support Apple M1 CPU
Prerequisites
- [X] I am running the latest version. (
up upgrade) - [X] I searched to see if the issue already exists.
- [ ] I inspected the verbose debug output with the
-v, --verboseflag. - [ ] Are you an Up Pro subscriber?
Description
It is not possible ti install Up on Apple M1 Macbook Pro
Steps to Reproduce
❯ curl -sf https://up.apex.sh/install | sh
apex/up: platform darwin/arm64 is not supported. Make sure this script is up-to-date and file request at https://github.com/apex/up/issues/new
Slack
Join us on Slack https://chat.apex.sh/
--- up.original.sh 2021-04-28 15:40:30.000000000 +0900
+++ up.sh 2021-04-28 15:40:56.000000000 +0900
@@ -58,6 +58,7 @@
found=1
case "$platform" in
darwin/amd64) found=0 ;;
+ darwin/arm64) found=0 ;;
darwin/386) found=0 ;;
linux/amd64) found=0 ;;
linux/386) found=0 ;;
@@ -124,6 +125,7 @@
x86) arch="386" ;;
i686) arch="386" ;;
i386) arch="386" ;;
+ arm64) arch="amd64" ;;
aarch64) arch="arm64" ;;
armv5*) arch="arm5" ;;
armv6*) arch="arm6" ;;
Just a hack for Rosetta 2
--- up.original.sh 2021-04-28 15:40:30.000000000 +0900 +++ up.sh 2021-04-28 15:40:56.000000000 +0900 @@ -58,6 +58,7 @@ found=1 case "$platform" in darwin/amd64) found=0 ;; + darwin/arm64) found=0 ;; darwin/386) found=0 ;; linux/amd64) found=0 ;; linux/386) found=0 ;; @@ -124,6 +125,7 @@ x86) arch="386" ;; i686) arch="386" ;; i386) arch="386" ;; + arm64) arch="amd64" ;; aarch64) arch="arm64" ;; armv5*) arch="arm5" ;; armv6*) arch="arm6" ;;Just a hack for Rosetta 2
Is this the official solution? If so can you elaborate on the solution? Like where did you get the up.sh file if you can't run this command $ curl -sf https://up.apex.sh/install | sh?
@toymachiner62 this command literally fetches up.sh and executes it.
All you have to do is open the link directly, copy the content, save it somewhere in your mac (e.g. up.sh), add the lines mentioned and run it via sh /path/to/your/up.sh.
arm64) arch="amd64" ;;
Thanks for this.
Getting a different error now:
$ up version
apex/up: found version ersion for darwin/amd64
apex/up: downloading https://github.com/apex/up/releases/download/version/up_ersion_darwin_amd64.tar.gz
curl: (22) The requested URL returned error: 404
I'm on an M1 Max CPU if that matters.
Hi, I also found this, but could install the script from a Rosetta terminal.
Tried installing this on my M1 Macbook Pro using the above up.sh fix, but all I get is:
apex/up: checking GitHub for latest version usage: cut -b list [-n] [file ...] cut -c list [file ...] cut -f list [-s] [-w | -d delim] [file ...]