Replies: 7 comments 15 replies
-
If the release did not have version information in the asset you could just do this and it would always get the latest release for that asset. https://github.com/aristocratos/btop/releases/latest/download/btop-aarch64-linux-musl.tbz Currently it is like this - a working example but not latest release friendly since the version 1.1.2 is hardcoded to the URL. https://github.com/aristocratos/btop/releases/latest/download/btop-1.1.2-aarch64-linux-musl.tbz I think this is the best and most modern way to do this Using the api is ok but it has rate limits for unauthorised calls of 60 per IP hour. So not 100% Reliable in some settings. Since you are setting a VERSION var then reusing the var i suggest you use
Giving
|
Beta Was this translation helpful? Give feedback.
-
@tliron |
Beta Was this translation helpful? Give feedback.
-
Well then, a better installation script is in order until RPM/DEB/etc. packaging is available. |
Beta Was this translation helpful? Give feedback.
-
Sorry to bump this, I'm trying to integrate btop installation in my dotfiles config. If I use
or
I always get Thanks for creating btop, @aristocratos. :) |
Beta Was this translation helpful? Give feedback.
-
Sorry @userdocs & @aristocratos, found the problem: on the system I was testing with, btop was installed some months ago through apt, and it's 1.2.7. :) The url One question: for a full installation, the advice is to extract the archive and execute the install script, right? extracting only the binary I would lose some functionality if I understood correctly. Thanks for the help. |
Beta Was this translation helpful? Give feedback.
-
Done, works beautifully and silently. Thanks a lot for the help. Love the interface, you made an amazing job. echo "Installing/Upgrading btop++"
mkdir ./btopinst &> /dev/null
pushd ./btopinst &> /dev/null
wget -q https://github.com/aristocratos/btop/releases/latest/download/btop-x86_64-linux-musl.tbz -O btop.tbz
tar -xjvf btop.tbz &>/dev/null
make -s install &>/dev/null
popd &> /dev/null
rm -rf ./btopinst |
Beta Was this translation helpful? Give feedback.
-
Another version of an installation script mkdir -p btop-install/output
wget -qO - https://github.com/aristocratos/btop/releases/latest/download/btop-x86_64-linux-musl.tbz | tar -xj -C btop-install/output
(cd btop-install/output/btop && sudo make install && sudo make setuid)
rm -rf btop-install |
Beta Was this translation helpful? Give feedback.
-
Here's an example for installing the latest version on Linux x86_64 (run as root):
Maybe it's worth putting something like this in the README?
Beta Was this translation helpful? Give feedback.
All reactions