S045: plan for installer.sh and Arch package

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-26 12:22:27 -06:00
commit 7447e43cb9
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,26 @@
# S045 — installer.sh and Arch package
> Category 10 Distribution · Model: Sonnet · Effort: medium · Depends on: S039 · Phase: test · Human: no
> Files touched: installer.sh, packaging/arch/**, tools/package.sh, README.md, docs/tests/S045-installer-arch.md
## Goal
The user asked for an installer script and an Arch package for 0.1.0. Debian and Fedora packages wait for a build on an older host (the binary needs glibc 2.44); not in this plan.
## Read
- tools/package.sh, the tar.gz's install.sh and uninstall.sh, assets/medlar.desktop, assets/medlar.metainfo.xml, README install section
- the user's global release rules (CLAUDE.md is loaded): file names `<App>-<version>-<platform>.<ext>`, no scripts or .md in releases/
## Steps
- [ ] `installer.sh` at the repo root (POSIX sh, shellcheck-clean if shellcheck is present): installs from a given tar.gz or AppImage, or from one found next to it; `--user` (default, ~/.local) or `--system` (/usr/local, sudo only for the copy); desktop file, icons, metainfo, `medlar:` scheme handler; `--uninstall` (and `--purge` for data); refuses when glibc is older than 2.44 with a plain message; verifies SHA256SUMS when present. Optional `--url` download is allowed but the repo is private, so the default path is a local file
- [ ] `packaging/arch/PKGBUILD` (+ `.SRCINFO`): `medlar-bin` from the release tar.gz with sha256sums, depends listed from the binary's needs (glibc, libxkbcommon, wayland, etc.), optdepends yt-dlp and ffmpeg, desktop file, icons, metainfo, license
- [ ] Build the package with `makepkg` from the local tar.gz (no network: point `source` at the file in dist/ for the build); `namcap` if present; inspect contents with `bsdtar -tf`
- [ ] Test, with throwaway roots only: installer.sh `--user` into a temp HOME, `--system` with `DESTDIR`/prefix into a temp dir, uninstall leaves nothing; package contents and file list checked; do NOT `pacman -U` on the real system
- [ ] `tools/package.sh` also makes the Arch package as `dist/Medlar-0.1.0-arch-x86_64.pkg.tar.zst` and adds it to `dist/SHA256SUMS-0.1.0`; nothing into releases/ (the orchestrator adds it)
- [ ] README: install sections for installer.sh and Arch; test file `docs/tests/S045-installer-arch.md` with Results; PROGRESS entry, tick INDEX, commit `S045: …`, `git push origin HEAD`
## End criteria
- installer installs and uninstalls cleanly in a throwaway home and prefix
- the Arch package builds offline and lists the right files
## Pitfalls
Never touch the real ~/.local, /usr or pacman database. No downloads (D-011). Never put scripts in releases/.

View file

@ -63,6 +63,10 @@ Tracker: https://claude.ai/artifact/XouimfVJS6FYVKskGJ8s7H
- [x] [S044](09%20Test%20and%20release/S044-fix-open-high.md) Close the open HIGH checks and wire the video page
- [x] [S039](09%20Test%20and%20release/S039-package-release.md) Package, docs and release 🧑
## 10 Distribution
- [ ] [S045](10%20Distribution/S045-installer-arch.md) installer.sh and Arch package
## Later (after version 1; not run by /orchestrate)
Plans kept in `Plans/Later/`: S020 automatic limiter and quota, S026 preview and conversion, S028 archives, S029 site grabber, S030 statistics and import, S031 command line and REST, S032 web remote. `/plan-generate later` updates them first. Merged: S035, S036 into S034; S038 into S037; S040 into S039; S042 into S041 and S043.