Coder Social home page Coder Social logo

Support Apple M1 CPU about up HOT 6 OPEN

toffguy77 avatar toffguy77 commented on May 24, 2024 11
Support Apple M1 CPU

from up.

Comments (6)

heycalmdown avatar heycalmdown commented on May 24, 2024 3
--- 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

from up.

toymachiner62 avatar toymachiner62 commented on May 24, 2024
--- 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?

from up.

kazzkiq avatar kazzkiq commented on May 24, 2024

@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.

from up.

toymachiner62 avatar toymachiner62 commented on May 24, 2024
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.

from up.

jaimeiniesta avatar jaimeiniesta commented on May 24, 2024

Hi, I also found this, but could install the script from a Rosetta terminal.

from up.

gkurl avatar gkurl commented on May 24, 2024

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 ...]

from up.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.