Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show a more helpful error message if the user tries to run the installer on Linux (not macOS) #212

Closed
rxhfcy opened this issue Sep 18, 2023 · 0 comments

Comments

@rxhfcy
Copy link

rxhfcy commented Sep 18, 2023

If someone tries to launch the installer from Linux (not macOS) for some reason, here's what currently happens:

$ curl https://alx.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1588  100  1588    0     0   1371      0  0:00:01  0:00:01 --:--:--  1371

Bootstrapping installer:
  Checking version...
  Version: v0.6.4
  Downloading...
  Extracting...
  Initializing...

The installer needs to run as root.
Please enter your sudo password if prompted.
sh: line 58: exec: caffeinate: not found

Instead of somewhat confusingly complaining about caffeinate, detect the platform (ARM64 Linux) and show a more helpful error message instead: "Looks like you're trying to run the installer from Linux. Boot to macOS and run the installer from macOS." or something like that.

  • Also add an additional error for people who are running on x64 Linux for some reason? ("Sorry, Asahi Linux only supports Apple Silicon machines.")

Somewhat related: you've already added similar more helpful error messages for trying to run on an Intel Mac, trying to use a macOS version that is too old, and running the installer under Rosetta.

@marcan marcan closed this as completed in c633a2b Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant