`sign` fell back to "the first secret key in the keyring" whenever
REGENT_GPG_KEY was unset. On the release laptop that was an unrelated
key, so 0.9.0-0.9.2 were signed (tarball and tag) by it, and its
fingerprint was baked into the AUR recipe's `validpgpkeys`.
Pin the release key (RELEASE_KEY_FPR) and never scan the keyring. Fail
unless the key has a secret half and, without an explicit override,
unless it is the pin; log the uid before signing; assert the tag is
signed by that same key. The pin is Râu Cao <raucao@kosmos.org>, which
is on WKD and both keyservers, so makepkg can still fetch it.
Add build-aux/resign-release.sh to re-sign an already-published release
in place: the same tarball bytes (sha256 and every `sha256sums` stay
valid), the same commit re-tagged, and the signature, exported key and
PKGBUILD asset refreshed. It also regenerates the release's PKGBUILD
asset, because the published ones are stale: 0.9.0's is the initial
placeholder with `sha256sums=('SKIP' 'SKIP')` (no integrity check) and
0.9.1's is 0.9.0's recipe.
Also fix usage(), which printed only one line: sub() mutates $0, so the
second awk rule saw the stripped line and exited immediately.
Gitea renders release notes with hard line breaks — a soft newline in the
body becomes a <br/> — so the changelog's ~80-column wrapping made every
bullet break mid-sentence on the release page. The AppStream path already
joined continuation lines before emitting <li>; the --notes path handed the
raw section to Gitea.
Join them there too, keeping blank lines, ATX headings, list items and fenced
code intact, and refresh the live v0.9.2 body with the fixed output.
Update the README for a pre-1.0 (0.x) first release: the current version is
0.9.0, the sub-1.0 number means the interface is not yet stable, and the
completed internal security review is noted as a self-review rather than an
independent audit. Replace the "1.0 beta" wording in Installation.
Write the 0.9.0 release notes under [Unreleased] (release.sh prepare renames
the heading and stamps the date) and drop the never-released 0.1.0 snapshot
section. Refresh the illustrative version in the release docs and tooling.
The cache only works when the job container shares the host network (a
bridge job cannot reach the runner's cache server through a host
firewall); record that, force_pull and node_download so the runner can be
rebuilt without rediscovering them.
The ubuntu-latest runner image ships GTK 4.22, which cannot satisfy the
crate's v4_24/v1_10 features (they want GTK >= 4.23 / libadwaita >= 1.10,
newer than the latest stable GNOME release), so the first CI run failed
compiling gdk4-sys. The GNOME OS SDK is no better.
Build a regent-ci image (build-aux/ci/) from Arch with the GTK/libadwaita
headers, a rustup-pinned toolchain and the static cargo-deny binary baked
in, register a repo-level runner with the matching label, and drop the
apt/rustup/install-action steps.
Bump url to 2.5.9 (RUSTSEC-2026-0592), which the cargo-deny step would
otherwise fail on.
Corrects the signing scheme. The release itself — the annotated tag and a
detached signature over the tarball — is GPG-signed; the release commit is
SSH-signed. Because the GPG key lives on a laptop and the build runs on the
build host, the single script becomes three stages split across two machines:
prepare <ver> build host: bump, build, meson dist, SSH-signed commit
sign <ver> laptop: GPG-sign the tarball and the tag
publish <ver> laptop: Gitea release, AUR, Nostr
The GPG key never touches the build host, and only dist/ travels: the laptop
pulls it over SSH. The two signing formats are set per git command
(-c gpg.format=ssh|openpgp), so neither depends on a machine's global config.
- release.sh: prepare/sign/publish subcommands; SSH commit, GPG tag + detached
tarball signature; REGENT_SSH_SIGNING_KEY / REGENT_GPG_KEY; a release.env
handoff that pins the tagged commit; optional dist/ pull.
- AUR regent: the .asc in source and validpgpkeys pinned to _fingerprint.
- .ngit/release.yaml: the .asc and an exported public key, replacing the SSH
.sig and allowed_signers.
- README, doc/dev/releasing.md, AGENTS.md updated for the split.
The release process is a maintainer's job, not part of local development, so it
gets its own document. development.md now just points at it (and the README's
documentation list gains an entry).
build-aux/release.sh cuts a release from main: it bumps the version in
meson.build/Cargo.toml/Cargo.lock, generates the AppStream release entry from
CHANGELOG.md, builds and signs the distribution tarball, tags it, and publishes
to Gitea (gt release create), the AUR, and Nostr (ngit release publish). Every
outward-facing step is skippable (--no-push/--no-release/--no-aur/--no-nostr),
so a build can be prepared and reviewed before it goes anywhere.
Signing is SSH-only (git's gpg.format=ssh): an annotated tag plus an
ssh-keygen -Y sign detached signature over the tarball. That lets the key stay
on a laptop — run the script under ssh -A and the forwarded agent signs, so the
key material never lands on the build host.
Also:
- CHANGELOG.md: the single source of release notes (Keep a Changelog).
- build-aux/gen-metainfo-releases.py: generates the metainfo <releases> block
from it, translating the version dialect (1.0.0-beta.1 -> 1.0.0~beta.1, with
type=development) and exposing --notes for the release notes text.
- build-aux/aur/{regent,regent-git}: the AUR recipes (release tarball and VCS).
- build-aux/regent-dev: the working-tree package, renamed from regent-git to
make room for the AUR regent-git; deploy-dev.sh --pkg builds this one.
- .ngit/release.yaml: the NIP-82 release manifest (Blossom mirror at
blossom.kosmos.org), replacing the hand-rolled NIP-94/30063/32267 plan.
- Docs: README (install + verify), doc/dev/development.md (Releasing),
AGENTS.md (Releases).
This adds tooling only: it cuts no tag and publishes nothing.
The wrapper fell back to one hard-coded build host when the variable was
unset, so it silently only worked on that one machine. It now exits with a
clear message pointing at the variable, and the dev doc marks it required
(REGENT_REPO_PATH keeps its `~/src/regent` default).
The "Testing on another machine" section hard-coded the build host (`nuc-zt`)
and repo path (`~/src/regent`), so it read as notes for one particular setup.
It is now "Deploying to another machine": the two scripts are described
generically, the copy-paste uses `BUILD_HOST` / `PATH/TO/regent` placeholders,
and the `REGENT_BUILD_HOST` and `REGENT_REPO_PATH` overrides are documented
(with the old values noted as their defaults). `--emit` joins the on-host
list, and the narrative is build-host/test-machine rather than naming specific
machines.
The README mixed a short introduction with the build steps, the nightly
build, headless mode, CLI pairing and the two-machine deploy workflow, all
in one file. It now opens with the app icon and a prose description, then
Status, Installation (build from source for now, AUR planned), Repositories
& Contributions (Gitea and ngit), Documentation, License and Contact — the
shape Marco's README uses.
The build, test, validation and dev-deploy material moves to
doc/dev/development.md, and headless mode plus `regent --pair` to
doc/advanced.md, both linked from the README.
The description is also more accurate: Regent runs on GNOME and other Linux
desktops (not GNOME only), requests covered by an "Allow always" permission
are answered without a prompt (so not *every* request is shown), and several
keys can be held and used in parallel.