new update system
This commit is contained in:
67
coreupdate
67
coreupdate
@@ -20,65 +20,16 @@ EOF
|
||||
clear
|
||||
print_logo
|
||||
|
||||
COREDESKTOP="$HOME/.local/share/coredesktop"
|
||||
|
||||
echo "Updating CoreDesktop..."
|
||||
git -C ~/.local/share/coredesktop pull
|
||||
sudo cp ~/.local/share/coredesktop/coreupdate ~/.local/bin/coreupdate
|
||||
sudo cp ~/.local/share/coredesktop/corerefresh ~/.local/bin/corerefresh
|
||||
git -C "$COREDESKTOP" pull
|
||||
mkdir -p "$COREDESKTOP/updates.d"
|
||||
sudo cp "$COREDESKTOP/coreupdate" ~/.local/bin/coreupdate
|
||||
sudo cp "$COREDESKTOP/corerefresh" ~/.local/bin/corerefresh
|
||||
|
||||
echo "Updating Arch..."
|
||||
sudo pacman -Syu
|
||||
|
||||
cd ~/.local/share/coredesktop
|
||||
source utils.sh
|
||||
source packages.conf
|
||||
source 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[@]}"
|
||||
|
||||
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
|
||||
|
||||
echo "Updating Flatpaks..."
|
||||
flatpak update
|
||||
|
||||
echo "Updating Ruby and Rails..."
|
||||
mise upgrade --bump ruby
|
||||
mise reshim
|
||||
gem update
|
||||
|
||||
echo "Checking for new flatpaks..."
|
||||
. install-flatpaks.sh
|
||||
|
||||
echo "Configuring Bitwarden SSH agent..."
|
||||
. bitwarden.sh
|
||||
|
||||
echo "Update pipx applications..."
|
||||
pipx upgrade-all
|
||||
for plugin in "$COREDESKTOP/updates.d/"*.sh; do
|
||||
[ -f "$plugin" ] && source "$plugin"
|
||||
done
|
||||
|
||||
echo "Done."
|
||||
|
||||
Reference in New Issue
Block a user