Launcher: Horizon's registry as a mod browser source
A browser source for Horizon's own registry (docs/api/mod-index.md): it reads index.json (HORIZON_MOD_INDEX for a test registry, cached in the game folder for when the registry can't be reached), searches it by kind and words, lists versions with the SHA-256 the index gives, and blocks the versions it says were taken down. Downloads accept the registry's release host and check SHA-256; file:// files only from a local index. Installing, the takedown check before play and the CLI come next. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -326,6 +326,7 @@ mod tests {
|
||||
name: "a.jar".into(),
|
||||
size: 1,
|
||||
sha512: sha512.map(str::to_owned),
|
||||
sha256: None,
|
||||
sha1: sha1.map(str::to_owned),
|
||||
primary: true,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user