From 3c1fc38fae9302be146c40ad4a289c1bb382f403 Mon Sep 17 00:00:00 2001 From: jschantli Date: Sat, 16 May 2026 09:18:51 -0700 Subject: [PATCH] 1. Removed "com.discordapp.Discord" from the FLATPAK_PACKAGES array. 2. Added a new install_discord function that installs the Discord RPM directly using the link provided. 3. Updated the main menu and switch cases (options 1, 2, and 11) to include the install_discord step and execute it when running the installation commands. --- postinstall.sh | 39 ++++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/postinstall.sh b/postinstall.sh index fc42499..b402944 100644 --- a/postinstall.sh +++ b/postinstall.sh @@ -29,10 +29,10 @@ DNF_PACKAGES=( "mpv" "fuse" "fuse-libs" + "nodejs24" ) FLATPAK_PACKAGES=( - "com.discordapp.Discord" "com.github.tchx84.Flatseal" "net.nokyan.Resources" "com.mattjakeman.ExtensionManager" @@ -199,8 +199,8 @@ install_repos() { log_info "----------------------------------------------------" sudo dnf install -y \ - https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \ - https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm + "https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm" \ + "https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm" check_status "RPM Fusion repositories installation" "non-critical" } @@ -258,6 +258,19 @@ install_software() { check_status "gemini-cli installation" "non-critical" } +install_discord() { + log_info "----------------------------------------------------" + log_info "Installing Discord" + log_info "----------------------------------------------------" + if rpm -q discord > /dev/null 2>&1; then + log_info "Discord already installed." + else + log_info "Downloading and installing Discord..." + sudo dnf install -y "https://discord.com/api/download?platform=linux&format=rpm" + check_status "Discord installation" "non-critical" + fi +} + install_1password() { log_info "----------------------------------------------------" log_info "Installing 1Password" @@ -275,7 +288,7 @@ install_Windscribe() { log_info "----------------------------------------------------" log_info "Installing Windscribe" log_info "----------------------------------------------------" - if rpm -q 1password > /dev/null 2>&1; then + if rpm -q windscribe-cli > /dev/null 2>&1 || command_exists windscribe; then log_info "Windscribe already installed." else log_info "Downloading and installing Windscribe..." @@ -473,12 +486,13 @@ show_menu() { echo "8. Install LinuxToys" echo "9. Install Shell Environment (Starship, MyBash)" echo "10. Install GNOME Extensions" - echo "11. Install 1Password" - echo "12. Install Windscribe" - echo "13. Install Topgrade" + echo "11. Install Discord" + echo "12. Install 1Password" + echo "13. Install Windscribe" + echo "14. Install Topgrade" echo "0. Exit" echo "====================================================" - read -p "Enter your choice [0-10]: " choice + read -p "Enter your choice [0-14]: " choice } # ----------------------------------------------------------------------------- @@ -500,6 +514,7 @@ while true; do install_fonts install_repos install_software + install_discord install_1password install_Windscribe install_topgrade @@ -515,6 +530,7 @@ while true; do install_fonts install_repos install_software + install_discord install_1password install_Windscribe install_topgrade @@ -533,9 +549,10 @@ while true; do 8) install_linuxtoys ;; 9) install_shell_env ;; 10) install_gnome_extensions ;; - 11) install_1password ;; - 12) install_Windscribe ;; - 13) install_topgrade ;; + 11) install_discord ;; + 12) install_1password ;; + 13) install_Windscribe ;; + 14) install_topgrade ;; 0) log_info "Exiting..." exit 0