mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-30 16:20:35 +00:00
feat(amd): Add LACT to topgrade
This commit is contained in:
parent
7b7d3860e5
commit
cf5e0f0f3d
@ -1,3 +1,4 @@
|
||||
[commands]
|
||||
"Linux AMDGPU Control Application" = "/usr/libexec/topgrade/lact-update"
|
||||
"Mozilla GNOME Themes" = "/usr/libexec/topgrade/mozilla-gnome-theme-update"
|
||||
"Third Party CSS Loader Themes" = "/usr/libexec/topgrade/third-party-css-loader-update"
|
||||
|
18
system_files/desktop/shared/usr/libexec/topgrade/lact-update
Executable file
18
system_files/desktop/shared/usr/libexec/topgrade/lact-update
Executable file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/bash
|
||||
shopt -s nullglob
|
||||
|
||||
echo "Looking for updates..."
|
||||
|
||||
if [[ $(rpm -qa | grep lact) ]]; then
|
||||
LACT_VERSION=$(curl -s https://api.github.com/repos/ilya-zlobintsev/LACT/releases/latest | jq -r '.tag_name | ltrimstr("v")')
|
||||
if [[ ! $(rpm-ostree status | grep lact | grep $LACT_VERSION) ]]; then
|
||||
# This will check if *any* rpm-ostree pin has the newest version, so we don't update needlessly if a user just needs to reboot or is trying an older pin.
|
||||
echo "Found upstream version v$LACT_VERSION, updating..."
|
||||
/usr/bin/ujust install-lact
|
||||
echo "Update complete"
|
||||
fi
|
||||
else
|
||||
echo "LACT not installed, skipping."
|
||||
fi
|
||||
|
||||
exit 0
|
Loading…
x
Reference in New Issue
Block a user