Last active
January 3, 2021 01:16
-
-
Save deepj/3c1f85893ef16e618690b6959ef7fa5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case $(uname -s) in | |
Linux) | |
install_package "artichoke-nightly" "https://github.com/artichoke/nightly/releases/latest/download/artichoke-nightly-x86_64-unknown-linux-gnu.tar.gz" artichoke | |
;; | |
Darwin) | |
case $(uname -m) in | |
arm64) | |
install_package "artichoke-nightly" "https://github.com/artichoke/nightly/releases/latest/download/artichoke-nightly-aarch64-apple-darwin.tar.gz" artichoke | |
;; | |
x86_64) | |
install_package "artichoke-nightly" "https://github.com/artichoke/nightly/releases/latest/download/artichoke-nightly-x86_64-apple-darwin.tar.gz" artichoke | |
;; | |
*) | |
colorize 1 "Unsupported architecture: $(uname -m)" | |
return 1 | |
;; | |
esac | |
;; | |
*) | |
colorize 1 "Unsupported operating system: $(uname -s)" | |
return 1 | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment