Skip to content

Commit

Permalink
feat: Use topgrade for ujust update
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Jan 20, 2024
1 parent 0c9ce86 commit 97aeca6
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 9 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions system_files/desktop/shared/usr/share/ublue-os/just/10-update.just
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 97aeca6

Please sign in to comment.