Releases: binaries, GHCR image, installer, Homebrew, landing #4

Merged
backmeupplz merged 10 commits from board/957-f4482b into main 2026-11-27 21:28:10 +00:00
Owner

Board #957. Ships Plaintext's command line and server as installable releases and puts the install story on getplaintext.org.

What

  • .forgejo/workflows/release.yml on v* tags (modelled on plain's):
    • build: plaintext + plaintext-server for aarch64-apple-darwin, x86_64-apple-darwin (Mac runner, native cargo), x86_64-unknown-linux-musl, aarch64-unknown-linux-musl (static, zig 0.17.1 + cargo-zigbuild 0.24.1, both checksum-pinned; keyring's vendored dbus builds fine), and x86_64-pc-windows-gnu (CLI only, zip). Also runs on PRs that touch the release tooling (trusted authors only, since it uses the Mac runners), so the tag is never the first run.
    • release: SHA256SUMS + GitHub Release (GH_MIRROR_TOKEN); forgejo: same release on git.borodutch.com.
    • homebrew: Formula/plaintext.rb in backmeupplz/homebrew-tap (FJ_PUSH_TOKEN), macOS + Linux, arm + intel.
    • docker: ghcr.io/backmeupplz/plaintext-server:<version> + :latest, amd64 + arm64. Built by packaging/image.sh with crane (checksum-pinned) from the release's static musl binaries: one layer on an empty base with /plaintext-server, /data owned by 65532, /tmp; user 65532, same env/entrypoint/port as the Dockerfile. No Docker daemon needed (jobs have none).
  • Registry: GHCR, not Forgejo's, because packages are turned off on git.borodutch.com; GH_MIRROR_TOKEN already has write:packages (todorant does the same).
  • docs/install: curl -fsSL https://getplaintext.org/install | sh → ~/.plaintext/bin (PLAINTEXT_INSTALL_DIR overrides; not PLAINTEXT_HOME, which is the CLI's config dir), compares the SHA256SUMS hash by hand like plain's.
  • Landing: new "Your vault in the terminal" and "Secrets for AI agents" sections (install, plaintext run, MCP for Claude Code / Claude Desktop / Cursor), "Run your own server" now uses the GHCR image and the real PLAINTEXT_SETUP_CODE / plaintext user invite flow (the old copy named a nonexistent PLAINTEXT_INVITE), updated status line, nav wraps on phones. README matches.
  • Repo secrets GH_MIRROR_TOKEN and FJ_PUSH_TOKEN added to this repo from Vaultwarden.

Tested locally

  • Cross builds of all five targets from macOS with the pinned zig/cargo-zigbuild; Linux binaries are statically linked.
  • In ubuntu:24.04 amd64 and arm64: plaintext --version, musl server + CLI signup / add / get, CLI HTTPS request (rustls) works.
  • packaging/image.sh against a local registry:2: index has linux/amd64 + linux/arm64, config as above; docker run -v vol:/data on both arches → signup, add, get, restart, data persists, volume owned 65532.
  • Installer against a local fake release: macOS (scratch HOME, zsh rc line added), Ubuntu amd64 + arm64 containers; a wrong checksum installs nothing and exits 1.
  • Formula generator: ruby -c OK, 4 sha256 lines.
  • Landing at 390px: no horizontal overflow (only code blocks scroll).

Not proven yet

  • x86_64-apple-darwin and Windows binaries were built but not run (no Rosetta / Windows here).
  • Secret Service keychain on the static Linux build (only PLAINTEXT_KEYCHAIN=file exercised).
  • GHCR package visibility: a first push from a PAT can create a private package; check an anonymous pull after the first release.

After merge (in order)

  1. Tag v0.1.0 right away (the installer and landing go live on merge and point at releases/latest).
  2. Verify curl … | sh on macOS and in Ubuntu, brew install backmeupplz/tap/plaintext, anonymous docker pull/run from GHCR.

🤖 Generated with Claude Code

Board #957. Ships Plaintext's command line and server as installable releases and puts the install story on getplaintext.org. ## What - `.forgejo/workflows/release.yml` on `v*` tags (modelled on plain's): - **build**: `plaintext` + `plaintext-server` for `aarch64-apple-darwin`, `x86_64-apple-darwin` (Mac runner, native cargo), `x86_64-unknown-linux-musl`, `aarch64-unknown-linux-musl` (static, zig 0.17.1 + cargo-zigbuild 0.24.1, both checksum-pinned; keyring's vendored dbus builds fine), and `x86_64-pc-windows-gnu` (CLI only, zip). Also runs on PRs that touch the release tooling (trusted authors only, since it uses the Mac runners), so the tag is never the first run. - **release**: SHA256SUMS + GitHub Release (`GH_MIRROR_TOKEN`); **forgejo**: same release on git.borodutch.com. - **homebrew**: `Formula/plaintext.rb` in backmeupplz/homebrew-tap (`FJ_PUSH_TOKEN`), macOS + Linux, arm + intel. - **docker**: `ghcr.io/backmeupplz/plaintext-server:<version>` + `:latest`, amd64 + arm64. Built by `packaging/image.sh` with crane (checksum-pinned) from the release's static musl binaries: one layer on an empty base with `/plaintext-server`, `/data` owned by 65532, `/tmp`; user 65532, same env/entrypoint/port as the Dockerfile. No Docker daemon needed (jobs have none). - Registry: **GHCR**, not Forgejo's, because packages are turned off on git.borodutch.com; GH_MIRROR_TOKEN already has write:packages (todorant does the same). - `docs/install`: `curl -fsSL https://getplaintext.org/install | sh` → `~/.plaintext/bin` (`PLAINTEXT_INSTALL_DIR` overrides; not `PLAINTEXT_HOME`, which is the CLI's config dir), compares the SHA256SUMS hash by hand like plain's. - Landing: new "Your vault in the terminal" and "Secrets for AI agents" sections (install, `plaintext run`, MCP for Claude Code / Claude Desktop / Cursor), "Run your own server" now uses the GHCR image and the real `PLAINTEXT_SETUP_CODE` / `plaintext user invite` flow (the old copy named a nonexistent `PLAINTEXT_INVITE`), updated status line, nav wraps on phones. README matches. - Repo secrets `GH_MIRROR_TOKEN` and `FJ_PUSH_TOKEN` added to this repo from Vaultwarden. ## Tested locally - Cross builds of all five targets from macOS with the pinned zig/cargo-zigbuild; Linux binaries are `statically linked`. - In `ubuntu:24.04` amd64 and arm64: `plaintext --version`, musl server + CLI signup / add / get, CLI HTTPS request (rustls) works. - `packaging/image.sh` against a local `registry:2`: index has linux/amd64 + linux/arm64, config as above; `docker run -v vol:/data` on both arches → signup, add, get, restart, data persists, volume owned 65532. - Installer against a local fake release: macOS (scratch HOME, zsh rc line added), Ubuntu amd64 + arm64 containers; a wrong checksum installs nothing and exits 1. - Formula generator: `ruby -c` OK, 4 sha256 lines. - Landing at 390px: no horizontal overflow (only code blocks scroll). ## Not proven yet - x86_64-apple-darwin and Windows binaries were built but not run (no Rosetta / Windows here). - Secret Service keychain on the static Linux build (only `PLAINTEXT_KEYCHAIN=file` exercised). - GHCR package visibility: a first push from a PAT can create a private package; check an anonymous pull after the first release. ## After merge (in order) 1. Tag `v0.1.0` right away (the installer and landing go live on merge and point at releases/latest). 2. Verify `curl … | sh` on macOS and in Ubuntu, `brew install backmeupplz/tap/plaintext`, anonymous `docker pull`/`run` from GHCR. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Releases: binaries for macOS, Linux and Windows, GHCR image, installer, Homebrew, landing
All checks were successful
release / build (macos-latest, true, x86_64-apple-darwin) (pull_request) Successful in 1m20s
release / build (macos-latest, true, aarch64-apple-darwin) (pull_request) Successful in 1m42s
CI / check (pull_request) Successful in 3m24s
release / build (ubuntu-24.04, true, x86_64-unknown-linux-musl) (pull_request) Successful in 9m31s
release / build (ubuntu-24.04, false, x86_64-pc-windows-gnu) (pull_request) Successful in 9m32s
release / build (ubuntu-24.04, true, aarch64-unknown-linux-musl) (pull_request) Successful in 9m54s
release / release (pull_request) Has been skipped
release / forgejo (pull_request) Has been skipped
release / homebrew (pull_request) Has been skipped
release / docker (pull_request) Has been skipped
4fb7692cc3
release.yml on v* tags builds plaintext and plaintext-server (static musl on Linux via
zig, GNU target on Windows), publishes the GitHub and Forgejo releases with SHA256SUMS,
writes Formula/plaintext.rb to the tap and pushes ghcr.io/backmeupplz/plaintext-server
for amd64 and arm64 with crane (no Docker daemon in jobs). docs/install verifies the
checksum before unpacking. The landing page gains command line and agents sections
with MCP setup for Claude Code, Claude Desktop and Cursor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Release review fixes: tag/version check, one release at a time, index annotation
All checks were successful
release / build (ubuntu-24.04, false, x86_64-pc-windows-gnu) (pull_request) Successful in 8m46s
release / build (macos-latest, true, x86_64-apple-darwin) (pull_request) Successful in 1m29s
release / build (macos-latest, true, aarch64-apple-darwin) (pull_request) Successful in 1m47s
CI / check (pull_request) Successful in 2m33s
release / build (ubuntu-24.04, true, aarch64-unknown-linux-musl) (pull_request) Successful in 8m42s
release / build (ubuntu-24.04, true, x86_64-unknown-linux-musl) (pull_request) Successful in 8m26s
release / release (pull_request) Has been skipped
release / homebrew (pull_request) Has been skipped
release / docker (pull_request) Has been skipped
release / forgejo (pull_request) Has been skipped
ac6f86807a
- build fails on a tag that doesn't match Cargo.toml's version
- tag runs share one concurrency group, so the tap push and latest can't race
- PRs that change Cargo.toml/Cargo.lock run the cross builds too
- image index carries org.opencontainers.image.source for GHCR
- copy: only the Linux server binaries are static; setup codes without dots

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge remote-tracking branch 'origin/main' into board/957-1a39fa
All checks were successful
release / build (macos-latest, true, aarch64-apple-darwin) (pull_request) Successful in 1m46s
release / build (macos-latest, true, x86_64-apple-darwin) (pull_request) Successful in 1m53s
CI / check (pull_request) Successful in 3m7s
release / build (ubuntu-24.04, false, x86_64-pc-windows-gnu) (pull_request) Successful in 8m51s
release / build (ubuntu-24.04, true, aarch64-unknown-linux-musl) (pull_request) Successful in 9m29s
release / build (ubuntu-24.04, true, x86_64-unknown-linux-musl) (pull_request) Successful in 9m35s
release / release (pull_request) Has been skipped
release / forgejo (pull_request) Has been skipped
release / homebrew (pull_request) Has been skipped
release / docker (pull_request) Has been skipped
21ffc944be
# Conflicts:
#	README.md
Review fixes: honest agent copy, VOLUME /data in the image, setup code without dots
All checks were successful
release / build (macos-latest, true, aarch64-apple-darwin) (pull_request) Successful in 1m44s
release / build (macos-latest, true, x86_64-apple-darwin) (pull_request) Successful in 1m57s
CI / check (pull_request) Successful in 2m20s
release / build (ubuntu-24.04, false, x86_64-pc-windows-gnu) (pull_request) Successful in 6m4s
release / build (ubuntu-24.04, true, aarch64-unknown-linux-musl) (pull_request) Successful in 5m33s
release / build (ubuntu-24.04, true, x86_64-unknown-linux-musl) (pull_request) Successful in 6m55s
release / release (pull_request) Has been skipped
release / forgejo (pull_request) Has been skipped
release / homebrew (pull_request) Has been skipped
release / docker (pull_request) Has been skipped
2cdfa733a6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge remote-tracking branch 'origin/main' into board/957-4e7ea4
All checks were successful
release / build (macos-latest, true, aarch64-apple-darwin) (pull_request) Successful in 1m52s
release / build (macos-latest, true, x86_64-apple-darwin) (pull_request) Successful in 1m56s
CI / check (pull_request) Successful in 2m0s
release / build (ubuntu-24.04, false, x86_64-pc-windows-gnu) (pull_request) Successful in 5m38s
release / build (ubuntu-24.04, true, aarch64-unknown-linux-musl) (pull_request) Successful in 5m50s
release / build (ubuntu-24.04, true, x86_64-unknown-linux-musl) (pull_request) Successful in 4m36s
release / release (pull_request) Has been skipped
release / forgejo (pull_request) Has been skipped
release / homebrew (pull_request) Has been skipped
release / docker (pull_request) Has been skipped
3aa0e8aaeb
Merge origin/main (#7) into the release PR
Some checks failed
release / build (macos-latest, true, x86_64-apple-darwin) (pull_request) Successful in 1m30s
release / build (macos-latest, true, aarch64-apple-darwin) (pull_request) Successful in 1m35s
CI / check (pull_request) Successful in 2m28s
release / build (ubuntu-24.04, false, x86_64-pc-windows-gnu) (pull_request) Has been cancelled
release / build (ubuntu-24.04, true, aarch64-unknown-linux-musl) (pull_request) Has been cancelled
release / build (ubuntu-24.04, true, x86_64-unknown-linux-musl) (pull_request) Has been cancelled
release / release (pull_request) Has been cancelled
release / forgejo (pull_request) Has been cancelled
release / homebrew (pull_request) Has been cancelled
release / docker (pull_request) Has been cancelled
10af8b9ea2
Self-host recipe sets PLAINTEXT_URL and binds the port locally
Some checks failed
release / build (macos-latest, true, aarch64-apple-darwin) (pull_request) Has been cancelled
release / build (macos-latest, true, x86_64-apple-darwin) (pull_request) Has been cancelled
release / build (ubuntu-24.04, false, x86_64-pc-windows-gnu) (pull_request) Has been cancelled
release / build (ubuntu-24.04, true, aarch64-unknown-linux-musl) (pull_request) Has been cancelled
release / build (ubuntu-24.04, true, x86_64-unknown-linux-musl) (pull_request) Has been cancelled
release / release (pull_request) Has been cancelled
release / forgejo (pull_request) Has been cancelled
release / homebrew (pull_request) Has been cancelled
release / docker (pull_request) Has been cancelled
CI / check (pull_request) Has been cancelled
7678aa3152
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Note the remote-proxy case on the landing and what happens without PLAINTEXT_URL
All checks were successful
release / build (macos-latest, true, aarch64-apple-darwin) (pull_request) Successful in 1m41s
release / build (ubuntu-24.04, false, x86_64-pc-windows-gnu) (pull_request) Successful in 6m29s
release / build (macos-latest, true, x86_64-apple-darwin) (pull_request) Successful in 1m43s
release / build (ubuntu-24.04, true, x86_64-unknown-linux-musl) (pull_request) Successful in 6m31s
CI / check (pull_request) Successful in 2m11s
release / build (ubuntu-24.04, true, aarch64-unknown-linux-musl) (pull_request) Successful in 6m39s
release / release (pull_request) Has been skipped
release / forgejo (pull_request) Has been skipped
release / homebrew (pull_request) Has been skipped
release / docker (pull_request) Has been skipped
53b1bd113f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge main into the release PR
Some checks failed
release / build (macos-latest, true, aarch64-apple-darwin) (pull_request) Successful in 1m50s
release / build (macos-latest, true, x86_64-apple-darwin) (pull_request) Successful in 1m59s
CI / wasm (pull_request) Successful in 2m25s
CI / check (pull_request) Successful in 3m45s
release / build (ubuntu-24.04, false, x86_64-pc-windows-gnu) (pull_request) Successful in 7m46s
release / build (ubuntu-24.04, true, aarch64-unknown-linux-musl) (pull_request) Has been cancelled
release / build (ubuntu-24.04, true, x86_64-unknown-linux-musl) (pull_request) Has been cancelled
release / release (pull_request) Has been cancelled
release / forgejo (pull_request) Has been cancelled
release / homebrew (pull_request) Has been cancelled
release / docker (pull_request) Has been cancelled
3b9921a337
Landing and README: per-terminal unlock, signup with an invite, Windows session scope
All checks were successful
release / build (macos-latest, true, x86_64-apple-darwin) (pull_request) Successful in 1m52s
release / build (macos-latest, true, aarch64-apple-darwin) (pull_request) Successful in 1m58s
CI / check (pull_request) Successful in 3m13s
CI / wasm (pull_request) Successful in 2m57s
release / build (ubuntu-24.04, false, x86_64-pc-windows-gnu) (pull_request) Successful in 7m30s
release / build (ubuntu-24.04, true, aarch64-unknown-linux-musl) (pull_request) Successful in 8m9s
release / build (ubuntu-24.04, true, x86_64-unknown-linux-musl) (pull_request) Successful in 7m24s
release / release (pull_request) Has been skipped
release / forgejo (pull_request) Has been skipped
release / homebrew (pull_request) Has been skipped
release / docker (pull_request) Has been skipped
58a948859f
backmeupplz deleted branch board/957-f4482b 2026-11-27 21:28:10 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
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
backmeupplz/plaintext!4
No description provided.