[PR #4589] [MERGED] Launcher: accept a GitHub release asset as a registry file #5714

Closed
opened 2026-11-03 05:14:29 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4589
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: registry/links-and-releases


📝 Commits (1)

  • 4fabf20 Launcher: install registry files from a GitHub release asset

📊 Changes

2 files changed (+40 additions, -3 deletions)

View changed files

📝 launcher/src/browser/download.rs (+24 -3)
📝 launcher/src/browser/tests.rs (+16 -0)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

First step of the registry listing a mod by its repository link and taking its versions from the repo's GitHub releases (no registry PR per version). The index's file.url will then be https://github.com/<owner>/<repo>/releases/download/<tag>/<name>; the launcher only accepted the registry's own releases. This accepts exactly that address shape (no query, no extra path parts, https only). The index's SHA-256 (and the signature when the project has a key) still pin the bytes, so a moved or replaced asset is refused. Backwards compatible: lands before the registry side.

Tests: downloads_refused_before_any_byte extended. cargo test/clippy -D warnings/fmt on launcher.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/4589 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `registry/links-and-releases` --- ### 📝 Commits (1) - [`4fabf20`](https://github.com/horizon-rust/horizon/commit/4fabf2025c788fb06ab514ca205a038f3692bacd) Launcher: install registry files from a GitHub release asset ### 📊 Changes **2 files changed** (+40 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/browser/download.rs` (+24 -3) 📝 `launcher/src/browser/tests.rs` (+16 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. First step of the registry listing a mod by its repository link and taking its versions from the repo's GitHub releases (no registry PR per version). The index's `file.url` will then be `https://github.com/<owner>/<repo>/releases/download/<tag>/<name>`; the launcher only accepted the registry's own releases. This accepts exactly that address shape (no query, no extra path parts, https only). The index's SHA-256 (and the signature when the project has a key) still pin the bytes, so a moved or replaced asset is refused. Backwards compatible: lands before the registry side. Tests: `downloads_refused_before_any_byte` extended. `cargo test/clippy -D warnings/fmt` on launcher. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:14:29 +07:00
Sign in to join this conversation.
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
horizon-rust/horizon#5714
No description provided.