Extend bin/install-software's functionality

This commit is contained in:
JeremyStar™ 2024-02-03 02:53:42 +01:00
parent 59f5a3f4fc
commit acd8a09d1e

View file

@ -15,7 +15,12 @@ case "$ID" in
echo ":: Error: \"/sbin/paru\" not found, please install paru."
exit 1
fi
paru --removemake --batchinstall --sudoloop --mflags "--ignorearch" -Syu --needed bash ncurses nano rustup bat moar fireplace fortune-mod cowsay ytfzf yt-dlp-git tar zstd bzip unrar unzip 7-zip binutils
if [ "${1}" == "--noconfirm" ]; then
export "PARU_FLAGS=--noconfirm"
else
export "PARU_FLAGS="
fi
paru --removemake --batchinstall --sudoloop --mflags "--ignorearch" -Syu --needed bash ncurses nano rustup bat moar fireplace fortune-mod cowsay ytfzf yt-dlp-git tar zstd bzip zip unrar unzip 7-zip binutils ${PARU_FLAGS}
rustup default nightly
rustup update
cargo install eza
@ -29,6 +34,10 @@ case "$ID" in
*)
echo ":: No supported distribution found."
echo " Install these packages manually:"
echo " bash ncurses nano rustup bat moar fireplace fortune-mod cowsay ytfzf yt-dlp tar zstd gzip bzip unrar unzip 7z ['ar' or 'binutils']"
echo " bash ncurses nano rustup bat moar fireplace fortune-mod cowsay ytfzf yt-dlp tar zstd gzip bzip zip unrar unzip 7z ['ar' or 'binutils']"
echo " Then do this:"
echo " 1. Install the nightly rust toolchain and execute \"cargo install eza\""
echo " 2. Install sdkman by executing \"curl -s 'https://get.sdkman.io|bash'\""
echo " 3. Execute \"sdk install java 17.0.9-graal\""
;;
esac