Rework programmer detection; add image support
This commit is contained in:
@@ -7,31 +7,32 @@ install_dependencies() {
|
||||
case "$DISTRO" in
|
||||
arch)
|
||||
info "Installing packages via pacman..."
|
||||
run_cmd "sudo pacman -S --needed base-devel curl git gcc-ada ncurses zlib nasm sharutils unzip flashrom"
|
||||
run_cmd "sudo pacman -S --needed base-devel curl git gcc-ada ncurses zlib nasm sharutils unzip flashrom usbutils chafa"
|
||||
;;
|
||||
debian)
|
||||
info "Installing packages via apt..."
|
||||
run_cmd "sudo apt update"
|
||||
run_cmd "sudo apt install -y build-essential curl git gnat libncurses-dev zlib1g-dev nasm sharutils unzip flashrom"
|
||||
run_cmd "sudo apt install -y build-essential curl git gnat libncurses-dev zlib1g-dev nasm sharutils unzip flashrom usbutils chafa"
|
||||
;;
|
||||
fedora)
|
||||
info "Installing packages via dnf..."
|
||||
run_cmd "sudo dnf install -y @development-tools curl git gcc-gnat ncurses-devel zlib-devel nasm sharutils unzip flashrom"
|
||||
run_cmd "sudo dnf install -y @development-tools curl git gcc-gnat ncurses-devel zlib-devel nasm sharutils unzip flashrom usbutils chafa"
|
||||
;;
|
||||
gentoo)
|
||||
info "Installing packages via emerge..."
|
||||
run_cmd "sudo emerge --ask sys-devel/base-devel net-misc/curl dev-vcs/git sys-devel/gcc ncurses dev-libs/zlib dev-lang/nasm app-arch/sharutils app-arch/unzip sys-apps/flashrom"
|
||||
run_cmd "sudo emerge --ask sys-devel/base-devel net-misc/curl dev-vcs/git sys-devel/gcc ncurses dev-libs/zlib dev-lang/nasm app-arch/sharutils app-arch/unzip sys-apps/flashrom sys-apps/usbutils media-gfx/chafa"
|
||||
;;
|
||||
nix)
|
||||
info "Installing packages via nix-env..."
|
||||
run_cmd "nix-env -i stdenv curl git gcc gnat ncurses zlib nasm sharutils unzip flashrom"
|
||||
run_cmd "nix-env -i stdenv curl git gcc gnat ncurses zlib nasm sharutils unzip flashrom usbutils chafa"
|
||||
;;
|
||||
*)
|
||||
warn "Could not detect your distribution."
|
||||
echo ""
|
||||
echo " Please install these packages manually:"
|
||||
echo " build-essential/base-devel, curl, git, gcc-ada/gnat,"
|
||||
echo " ncurses, zlib, nasm, sharutils, unzip, flashrom"
|
||||
echo " ncurses, zlib, nasm, sharutils, unzip, flashrom, usbutils"
|
||||
echo " Optional: chafa (for inline image previews in this script)"
|
||||
echo ""
|
||||
prompt_continue
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user