Add optional locked plugin download URLs

This commit is contained in:
pleb
2026-07-10 09:17:02 -07:00
parent 26def9609d
commit 538feae811
7 changed files with 121 additions and 10 deletions
+9 -9
View File
@@ -46,15 +46,15 @@ There is no urgent need to migrate the layout before the rest of the helper
settles, but new code should avoid assuming that downloads and per-install
state must always live together.
The version lock should eventually include structured source URLs for every
asset so the helper can fetch missing downloads itself. The lock already pins
the selected repo, tag, asset name, and checksum; adding source fields would
make the fetch path explicit for both GitHub release assets and BeatMods CDN
fallbacks. Hashes should remain useful audit metadata and a warning signal, but
the UX needs a recovery path for replaced upstream assets: report the mismatch,
show the expected and actual hashes, and let the user intentionally refresh or
re-lock after inspection instead of treating every mismatch as an unrecoverable
dead end.
The version lock includes an optional `download_url` for publicly downloadable
artifacts. That makes the fetch path explicit for both GitHub release assets and
BeatMods CDN fallbacks, while local builds and private/commercial packages can
leave it unset. A future helper command can use this field to fetch missing
downloads itself. Hashes should remain useful audit metadata and a warning
signal, but the UX needs a recovery path for replaced upstream assets: report
the mismatch, show the expected and actual hashes, and let the user
intentionally refresh or re-lock after inspection instead of treating every
mismatch as an unrecoverable dead end.
## Future: Nix-Orchestrated Plugin Sets