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

Closed
opened 2026-09-02 01:14:13 +00: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-02 01:31:37 +00:00
Commenting is not possible because the repository is archived.
No labels
blocked
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
s1d3sw1ped/grok-bot-bin#2
No description provided.