6 Commits

Author SHA1 Message Date
eva 7787fc52a1 Merge pull request 'pkgbuild: Fix sha256sums for four package sources' (#22) from packaging/fix-four-sha256sums into master
Tag release after merge / tag (push) Successful in 2s
Build Arch package / build (push) Successful in 28s
pkgbuild: Fix sha256sums for four package sources (#22)

Restores pkexec/polkit checksums truncated by update.sh; enables makepkg for 0.44.0.
2026-09-06 22:30:15 -05:00
eva 464a9558df pkgbuild: Fix sha256sums for four package sources
update.sh only rewrote deb+launch shim checksums, truncating
pkexec-pacman-u and polkit policy after version bumps. Cover all
four sources in PKGBUILD/.SRCINFO and future update.sh runs.
2026-09-07 03:30:04 +00:00
eva 6bc0ad9de4 Merge pull request 'pkgbuild: Bump grok-bot-bin to 0.44.0' (#21) from chore/bump-0.44.0 into master
Tag release after merge / tag (push) Successful in 3s
pkgbuild: Bump grok-bot-bin to 0.44.0 (#21)

Supersedes open 0.43.0 bump #20. tag-release should cut v0.44.0.
2026-09-06 22:27:12 -05:00
eva 807ebc6513 pkgbuild: Bump grok-bot-bin to 0.44.0 2026-09-07 03:17:59 +00:00
eva a98cc6cabc Merge pull request 'ci: Run grok-bot update check hourly' (#19) from ci/update-hourly into master
Tag release after merge / tag (push) Successful in 3s
ci: Run grok-bot update check hourly (#19)

Schedule 17 * * * * — no-op when feed unchanged.
2026-09-04 13:07:22 -05:00
eva 45c6c4da73 ci: Run grok-bot update check hourly
Justin: bump schedule from daily 06:17 to :17 every hour. No-op when feed unchanged.
2026-09-04 18:06:48 +00:00
4 changed files with 42 additions and 24 deletions
+5 -5
View File
@@ -1,7 +1,7 @@
pkgbase = grok-bot-bin
pkgdesc = Grok Bot desktop agent (official .deb repackaged)
pkgver = 0.39.0
pkgrel = 3
pkgver = 0.44.0
pkgrel = 1
url = https://cursor.com/download/bot
arch = x86_64
license = LicenseRef-proprietary
@@ -27,12 +27,12 @@ pkgbase = grok-bot-bin
replaces = sand
options = !strip
options = !debug
source = https://downloads.cursor.com/grokbot/stable/d8bc9c753edddb313047c9c69b480b7f8f321087/linux/x64/grok-bot_0.39.0_amd64.deb
source = https://downloads.cursor.com/grokbot/stable/12dcfa973ef51585fd1b35df6839fc9d1d7fd6aa/linux/x64/grok-bot_0.44.0_amd64.deb
source = grok-bot-launch.sh
source = pkexec-pacman-u
source = com.s1d3sw1ped.grok-bot-bin.policy
noextract = grok-bot_0.39.0_amd64.deb
sha256sums = ae498adaf71f9ff1734a786163c5807fa50165acb5aa102bb68f43ead96de4fe
noextract = grok-bot_0.44.0_amd64.deb
sha256sums = dded18b2d3d44b1c32d6b9f63446d2b27bca68b3de7a2aa028ce7956e9694164
sha256sums = 36e1c522f7a3920a850a6235263d82ad5990611612979447c1e9eff92548ac1e
sha256sums = e92ea4534d864d7f302a082a8717a52af9675195af41092d18f15094f74fed45
sha256sums = a9533dfe4d31332ac1505d2e582eff27771dd0107108a5f6289d0d3839431a74
+1 -1
View File
@@ -1,7 +1,7 @@
name: Check for new release
on:
schedule:
- cron: '17 6 * * *'
- cron: '17 * * * *'
workflow_dispatch:
jobs:
+4 -4
View File
@@ -8,9 +8,9 @@
# https://downloads.cursor.com/grokbot/stable/<commit>/linux/x64/grok-bot_<pkgver>_amd64.deb
pkgname=grok-bot-bin
pkgver=0.39.0
_commit=d8bc9c753edddb313047c9c69b480b7f8f321087
pkgrel=3
pkgver=0.44.0
_commit=12dcfa973ef51585fd1b35df6839fc9d1d7fd6aa
pkgrel=1
pkgdesc="Grok Bot desktop agent (official .deb repackaged)"
arch=('x86_64')
url="https://cursor.com/download/bot"
@@ -46,7 +46,7 @@ source=(
)
noextract=("grok-bot_${pkgver}_amd64.deb")
sha256sums=(
'ae498adaf71f9ff1734a786163c5807fa50165acb5aa102bb68f43ead96de4fe'
'dded18b2d3d44b1c32d6b9f63446d2b27bca68b3de7a2aa028ce7956e9694164'
'36e1c522f7a3920a850a6235263d82ad5990611612979447c1e9eff92548ac1e'
'e92ea4534d864d7f302a082a8717a52af9675195af41092d18f15094f74fed45'
'a9533dfe4d31332ac1505d2e582eff27771dd0107108a5f6289d0d3839431a74'
+31 -13
View File
@@ -97,10 +97,16 @@ fi
deb_sha=$(sha256sum "$tmp" | cut -d' ' -f1)
shim_sha=$(sha256sum grok-bot-launch.sh | cut -d' ' -f1)
if [[ ! "$deb_sha" =~ ^[0-9a-f]{64}$ || ! "$shim_sha" =~ ^[0-9a-f]{64}$ ]]; then
echo "error: sha256sum failed (deb=$deb_sha shim=$shim_sha)" >&2
pkexec_sha=$(sha256sum pkexec-pacman-u | cut -d' ' -f1)
policy_sha=$(sha256sum com.s1d3sw1ped.grok-bot-bin.policy | cut -d' ' -f1)
for label in deb_sha:$deb_sha shim_sha:$shim_sha pkexec_sha:$pkexec_sha policy_sha:$policy_sha; do
name=${label%%:*}
val=${label#*:}
if [[ ! "$val" =~ ^[0-9a-f]{64}$ ]]; then
echo "error: sha256sum failed ($name=$val)" >&2
exit 1
fi
fi
done
# Reset pkgrel on upstream version bumps.
sed -i \
@@ -117,24 +123,32 @@ if [[ "$newver" != "$version" || "$newcommit" != "$commit" || "$newrel" != "1" ]
exit 1
fi
python3 - "$deb_sha" "$shim_sha" <<'PY'
python3 - "$deb_sha" "$shim_sha" "$pkexec_sha" "$policy_sha" <<'PY2'
import pathlib, re, sys
deb_sha, shim_sha = sys.argv[1], sys.argv[2]
deb_sha, shim_sha, pkexec_sha, policy_sha = sys.argv[1:5]
p = pathlib.Path("PKGBUILD")
text = p.read_text()
block = f"sha256sums=(\n '{deb_sha}'\n '{shim_sha}'\n)"
block = (
"sha256sums=(\n"
f" '{deb_sha}'\n"
f" '{shim_sha}'\n"
f" '{pkexec_sha}'\n"
f" '{policy_sha}'\n"
")"
)
text2, n = re.subn(r"sha256sums=\([^\)]*\)", block, text, count=1, flags=re.S)
if n != 1:
raise SystemExit(f"sha256sums replace failed (n={n})")
p.write_text(text2)
PY
PY2
python3 - "$version" "$commit" "$deb_sha" "$shim_sha" <<'PY'
python3 - "$version" "$commit" "$deb_sha" "$shim_sha" "$pkexec_sha" "$policy_sha" <<'PY2'
import pathlib, sys
version, commit, deb_sha, shim_sha = sys.argv[1:5]
version, commit, deb_sha, shim_sha, pkexec_sha, policy_sha = sys.argv[1:7]
p = pathlib.Path(".SRCINFO")
if not p.is_file():
raise SystemExit(".SRCINFO missing")
shas = [deb_sha, shim_sha, pkexec_sha, policy_sha]
lines = []
saw_sha = False
saw_pkgver = saw_pkgrel = saw_source = saw_noextract = False
@@ -155,8 +169,8 @@ for line in p.read_text().splitlines(True):
continue
if line.startswith("\tsha256sums ="):
if not saw_sha:
lines.append(f"\tsha256sums = {deb_sha}\n")
lines.append(f"\tsha256sums = {shim_sha}\n")
for s in shas:
lines.append(f"\tsha256sums = {s}\n")
saw_sha = True
continue
lines.append(line)
@@ -169,7 +183,11 @@ missing = [n for n, ok in (
) if not ok]
if missing:
raise SystemExit(f".SRCINFO rewrite missed fields: {', '.join(missing)}")
# Ensure four sha lines present
sha_lines = [l for l in lines if l.startswith("\tsha256sums =")]
if len(sha_lines) != 4:
raise SystemExit(f".SRCINFO expected 4 sha256sums lines, got {len(sha_lines)}")
p.write_text("".join(lines))
PY
PY2
echo "Updated PKGBUILD and .SRCINFO to ${version} deb_sha=${deb_sha} shim_sha=${shim_sha}"
echo "Updated PKGBUILD and .SRCINFO to ${version} deb_sha=${deb_sha} shim_sha=${shim_sha} pkexec_sha=${pkexec_sha} policy_sha=${policy_sha}"