3 ms·
Getting alire installed involves downloading the zip, extracting the binary, and moving the binary to a directory in $PATH. If you're on a mac, you also have to
by ajdude 2y ago
Getting alire installed involves downloading the zip, extracting the binary, and moving the binary to a directory in $PATH. If you're on a mac, you also have to run an "xattr" command on the tool to get it running.
I've seen the last parts get newcomers tripped up so Getada takes the rustup approach.
It uses github's api to retrieve the latest published release of alire[1] and then downloads and extracts it to a specified directory in $HOME. Then it creates an env file[2] and sources that file in .profile and/or .zshenv. It also logs everything that it does so it can undo it later with getada --uninstall
[1] https://github.com/alire-project/alire/releases https://github.com/alire-project/alire/releases
[2] Here's roughly what the env file looks like that it creates https://github.com/AJ-Ianozi/getada/blob/main/src/shells.adb#L53 https://github.com/AJ-Ianozi/getada/blob/main/src/shells.adb...
- zilti 2y agoThat is literally a bash oneliner - pipe curl into tar, and have it unpack to ~/.local/bin.
- Karellen 2y ago> Getting alire installed involves downloading the zip, extracting the binary, and moving the binary to a directory in $PATH. If you're on a mac, you also have to run an "xattr" command on the tool to get it running. Is that considered a high bar for software developers to get right?
- adastra22 2y agoIn practice, yes.
- zilti 2y agoWe're doomed.
- workingjubilee 2y agoyeah, g-d forbid that any routine busywork gets automated by software, otherwise all those lines of code might actually have a point!
- zilti 2y agoThat is literally a bash oneliner - pipe curl into tar, and have it unpack to ~/.local/bin.
- vips7L 2y agoShouldn't a good package manager just take care of those steps?