Files
minstrel/client/README.md
T
bvandeusenandClaude Opus 5.5 1aea3e9a1b
release / go (push) Successful in 2m1s
release / web (push) Successful in 1m18s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m11s
release / android (push) Successful in 4m4s
release / Build signed APK (push) Successful in 4m33s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 29s
release / Verify release artifacts (tag releases only) (push) Skipped
chore: take workbench pointers and real library data out of the public tree
A sweep of the export (git archive) against the release leak standard:

- Internal ids in comments: a split "(rule 157)", two "RULE 131" headers
  and a "Preference 172" the id search missed because it was
  case-sensitive.
- Comments that quoted or credited the operator (shuffle caps, mix
  rotation, player bar layout, ID3v1 table).
- Real artists still in the suspect-source fixtures (and the Beck example
  in its comment): replaced with invented ones in the same file shapes.
- "26,171 tracks", a count from a real library, in the plural examples:
  now 12,345.
- Comments pointing at CI files the export leaves out (release.yml, the
  ci-go image, the Gitea keystore secret, an M8 milestone, .dockerignore
  history); client/README describes the release image, not the lanes.
- renovate.json is export-ignore: it targets the workbench's dev branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 06:56:35 -05:00

49 lines
1.5 KiB
Markdown

# Bundled client assets
Holds the Android APK (`minstrel.apk`) and its version sidecar
(`minstrel.apk.version`) that the server serves via `/api/client/version`
and `/api/client/apk` for the in-app update flow.
## Release images
The release build signs the APK, writes its sidecar, and places both here
before the image is built. `docker buildx build` bakes them into the image
via `COPY client/ /app/client/`, so a server always offers the app built
alongside it.
## The sidecar
`minstrel.apk.version` is JSON:
```json
{"name": "2026.10.23.1200", "code": 3549060, "channel": "dev"}
```
- `name` is the version name the app shows.
- `code` is the ordering key Android installs by. `null` means unknown,
and clients then compare names.
- `channel` says which lane built it.
A sidecar that is not valid JSON, or has no `name`, is an error rather
than a blank version.
## Development
An empty directory works fine: the endpoints return 404 and the Android
update banner stays hidden.
To smoke-test the update flow locally, drop a real APK and a sidecar into
this directory:
```sh
cp /path/to/app-release.apk client/minstrel.apk
echo '{"name":"2099.01.01.0000","code":null,"channel":"dev"}' > client/minstrel.apk.version
```
## Why a directory and not embed.FS?
The APK is 30-60 MB. Embedding bloats the Go binary and slows `go build`
for everyone, even when the APK isn't being changed. File-on-disk also
lets an admin override it at runtime with a volume mount on
`/app/client/` to ship their own build.