mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-21 09:39:49 +00:00
feat: Use topgrade for ujust update
This commit is contained in:
parent
0c9ce86a05
commit
97aeca6e1b
@ -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
|
@ -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
|
20
system_files/desktop/shared/usr/libexec/topgrade/mozilla-gnome-theme-update
Executable file
20
system_files/desktop/shared/usr/libexec/topgrade/mozilla-gnome-theme-update
Executable 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
|
@ -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
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user