feat: Launch shim that auto-updates from Gitea releases #2

Closed
opened 2026-09-01 20:14:13 -05:00 by Ghost · 0 comments

Add a wrapper installed as /usr/bin/grok-bot (and sand if needed) that on launch: 1) reads installed version via pacman -Q grok-bot-bin, 2) fetches latest release tag/asset from https://git.s1d3sw1ped.com/api/v1/repos/s1d3sw1ped/grok-bot-bin/releases?limit=1, 3) if newer, downloads the .pkg.tar.zst and runs pacman -U (noninteractive where possible; use sudo -n first then sudo), 4) exec the real binary under /opt/Grok Bot/. Skip update check with GROK_BOT_NO_UPDATE=1. Fail soft: if network/API fails, still launch. Keep PKGBUILD installing the shim instead of a plain symlink. Coordinate with #1 CI fix. Commit style area: Imperative summary. Do not merge yourself if PR.

Add a wrapper installed as /usr/bin/grok-bot (and sand if needed) that on launch: 1) reads installed version via pacman -Q grok-bot-bin, 2) fetches latest release tag/asset from https://git.s1d3sw1ped.com/api/v1/repos/s1d3sw1ped/grok-bot-bin/releases?limit=1, 3) if newer, downloads the .pkg.tar.zst and runs pacman -U (noninteractive where possible; use sudo -n first then sudo), 4) exec the real binary under /opt/Grok Bot/. Skip update check with GROK_BOT_NO_UPDATE=1. Fail soft: if network/API fails, still launch. Keep PKGBUILD installing the shim instead of a plain symlink. Coordinate with #1 CI fix. Commit style area: Imperative summary. Do not merge yourself if PR.
Ghost closed this issue 2026-09-01 20:31:37 -05:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: s1d3sw1ped/grok-bot-bin#2