From 87c042d0777a51f0db9a71a1b0fcaacef9c94058 Mon Sep 17 00:00:00 2001 From: Aryaman Sharma <72215253+TheLazron@users.noreply.github.com> Date: Thu, 25 Apr 2024 01:54:55 +0530 Subject: [PATCH] fedora support for dev setup (#2124) * fedora support for dev setup * Update setup-dev.sh --------- Co-authored-by: Disconnect3d --- setup-dev.sh | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/setup-dev.sh b/setup-dev.sh index 22b1f2c79..6b18c23ed 100755 --- a/setup-dev.sh +++ b/setup-dev.sh @@ -156,6 +156,28 @@ EOF download_zig_binary } +install_dnf() { + set_zigpath "$(pwd)/.zig" + + sudo dnf upgrade || true + sudo dnf install -y \ + nasm \ + gcc \ + curl \ + gdb \ + parallel \ + qemu-system-arm \ + qemu-user + + command -v go &> /dev/null || sudo dnf install -y go + + if [[ "$1" != "" ]]; then + sudo dnf install shfmt + fi + + download_zig_binary +} + if linux; then distro=$( . /etc/os-release @@ -173,6 +195,13 @@ if linux; then "arch") install_pacman ;; + "fedora") + fedora_version=$( + . /etc/os-release + echo ${VERSION_ID} version + ) + install_dnf $fedora_verion + ;; *) # we can add more install command for each distros. echo "\"$distro\" is not supported distro. Will search for 'apt' or 'pacman' package managers." if hash apt; then @@ -198,4 +227,4 @@ if linux; then source "${PWNDBG_VENV_PATH}/bin/activate" ~/.local/bin/poetry install --with dev -fi +fi \ No newline at end of file