new update system

This commit is contained in:
2026-06-10 08:26:38 -06:00
parent b1d4e2565f
commit 9c5c1e158f
7 changed files with 76 additions and 58 deletions

22
updates.d/10-pacman.sh Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
COREDESKTOP="$HOME/.local/share/coredesktop"
echo "Updating Arch..."
sudo pacman -Syu
source "$COREDESKTOP/utils.sh"
source "$COREDESKTOP/packages.conf"
source "$COREDESKTOP/remove-packages.conf"
echo "Removing unwanted packages..."
remove_packages "${REMOVE_PACMAN[@]}"
remove_flatpaks "${REMOVE_FLATPAKS[@]}"
echo "Checking for new packages..."
install_packages "${SYSTEM_UTILS[@]}"
install_packages "${DEV_TOOLS[@]}"
install_packages "${MAINTENANCE[@]}"
install_packages "${DESKTOP[@]}"
install_packages "${MEDIA[@]}"
install_packages "${FONTS[@]}"

20
updates.d/20-aur.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
echo "Updating AUR..."
YAY_FLAGS="--noconfirm --answerdiff=None --answeredit=None --answerclean=None"
if ! yay -Sua $YAY_FLAGS 2>/dev/null; then
echo "yay -Sua returned an error. Let's rebuild YAY."
sudo pacman -R yay
cd /tmp
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ..
rm -rf yay
cd
yay -Sua $YAY_FLAGS
else
echo "AUR up to date."
fi

9
updates.d/30-flatpak.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
COREDESKTOP="$HOME/.local/share/coredesktop"
echo "Updating Flatpaks..."
flatpak update --noninteractive
echo "Checking for new flatpaks..."
. "$COREDESKTOP/install-flatpaks.sh"

6
updates.d/40-ruby.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
echo "Updating Ruby and Rails..."
mise upgrade --bump ruby
mise reshim
gem update

View File

@@ -0,0 +1,6 @@
#!/bin/bash
COREDESKTOP="$HOME/.local/share/coredesktop"
echo "Configuring Bitwarden SSH agent..."
. "$COREDESKTOP/bitwarden.sh"

4
updates.d/60-pipx.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
echo "Updating pipx applications..."
pipx upgrade-all