Apple Silicon / ARM support in CLI setup wrapper script
- support
arm64
(apple silicon, etc) in addition toamd64
- of detected OS is not in the list of supported (darwin, windows, linux, freebsd), report an error
- instead of "latest", use "master" for now. In general, we need to stop using either of them, and know which version is the latest (a follow-up TODO item), to test RCs, etc.
- fix error handling
- report success regardless of sudo-ness
- add ascii art
- curl doesn't print progress
To test using this branch's code:
curl -fsSL https://gitlab.com/postgres-ai/database-lab/-/raw/nik-cli-wrapper-arm/engine/scripts/cli_install.sh | bash
Docs update to remove progress reporting in curl: docs!564 (merged)
with that docs update and this MR, it will be like this:
nik@niks-air ~ % curl -fsSL https://gitlab.com/postgres-ai/database-lab/-/raw/nik-cli-wrapper-arm/engine/scripts/cli_install.sh | sh
Detected OS: darwin, architecture: arm64
888 888 888 888
888 888 888 888
888 888 888 888
.d88888 88888b. 888 8888b. 88888b.
d88" 888 888 "88b 888 "88b 888 "88b
888 888 888 888 888 .d888888 888 888
Y88b 888 888 d88P 888 888 888 888 d88P
"Y88888 88888P" 888 "Y888888 88888P"
::::::::::::::::::::::::::::::::::::::::
SUCCESS! DLE CLI ("dblab") downloaded to:
~/.dblab/dblab
Add it to $PATH or move manually:
sudo mv ~/.dblab/dblab /usr/local/bin/dblab
::::::::::::::::::::::::::::::::::::::::
To start, run:
dblab init
Edited by Vitaliy Kukharik