feat: Use topgrade for ujust update

This commit is contained in:
Kyle Gospodnetich 2024-01-20 01:02:39 -08:00
parent 0c9ce86a05
commit 97aeca6e1b
5 changed files with 48 additions and 9 deletions

View File

@ -1,8 +0,0 @@
#!/usr/bin/bash
if [[ $(podman ps -a --no-trunc --format {{.Names}} | grep -E '(^|\s)bazzite-arch($|\s)') ]]; then
unset SUDO_USER # avoid distrobox sudo checks
/usr/bin/distrobox-enter -n bazzite-arch -- ' paru -Sua --noconfirm'
else
echo "Update skipped: bazzite-arch not installed"
fi

View File

@ -0,0 +1,9 @@
#!/usr/bin/bash
shopt -s nullglob
if [ -d "$HOME/homebrew/themes/Adwaita-for-Steam" ]; then
cd "$HOME/homebrew/themes/Adwaita-for-Steam"
git pull
fi
exit 0

View File

@ -0,0 +1,20 @@
#!/usr/bin/bash
shopt -s nullglob
# Flatpak Firefox
for firefox_gnome_theme in "$HOME/.var/app/org.mozilla.firefox/.mozilla/firefox/"*".default"*"/chrome/firefox-gnome-theme/"; do
if [ -d "$firefox_gnome_theme" ]; then
cd "$firefox_gnome_theme"
git pull
fi
done
# Flatpak Thunderbird
for thunderbird_gnome_theme in "$HOME/.var/app/org.mozilla.Thunderbird/.thunderbird/"*".default"*"/chrome/thunderbird-gnome-theme/"; do
if [ -d "$thunderbird_gnome_theme" ]; then
cd "$thunderbird_gnome_theme"
git pull
fi
done
exit 0

View File

@ -0,0 +1,14 @@
# vim: set ft=make :
alias upgrade := update
# Update system, flatpaks, and containers all at once
update:
/usr/bin/topgrade --config /usr/share/ublue-os/topgrade/topgrade.toml
# Update device firmware
[no-exit-message]
update-firmware:
/usr/bin/fwupdmgr refresh --force
/usr/bin/fwupdmgr get-updates
/usr/bin/fwupdmgr update

View File

@ -3,4 +3,8 @@ paths = ["/etc/topgrade.toml"]
[misc]
disable = ["toolbx", "self_update"]
ignore_failures = ["distrobox, "pip3"]
ignore_failures = ["distrobox", "pip3"]
[commands]
"Firefox GNOME Theme" = "/usr/libexec/topgrade/mozilla-gnome-theme-update"
"Steam Adwaita Theme" = "/usr/libexec/topgrade/adwaita-for-steam-update"