PKGBUILD: Point desktop Exec at update shim
Build Arch package / build (push) Successful in 27s

0.30 shipped Exec="/opt/Grok Bot/grok-bot", so the app menu skipped
/usr/bin/grok-bot and never auto-updated. Always rewrite the desktop
Exec to the PATH shim after unpacking the .deb so that cannot regress.
Bump pkgrel to 2; clearer sudo failure hint in the launch shim.
This commit is contained in:
s1d3sw1ped_bot
2026-09-02 15:21:20 +00:00
parent 7fea71c3ec
commit 4b2bc70766
4 changed files with 14 additions and 4 deletions
+1
View File
@@ -53,6 +53,7 @@ _maybe_update() {
# Prefer passwordless sudo; fall back to interactive sudo. Fail soft either way.
if ! sudo -n pacman -U --noconfirm "$pkg" 2>/dev/null; then
if ! sudo pacman -U --noconfirm "$pkg"; then
echo "grok-bot: need sudo to auto-update; run: sudo pacman -U <pkg> or launch /usr/bin/grok-bot from a terminal" >&2
echo "grok-bot: pacman -U failed; launching installed version" >&2
return 0
fi