[PR #46] [MERGED] blockscope: an icon the launcher can fetch #54

Closed
opened 2026-11-03 04:02:52 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon-mods/pull/46
Author: @Domanffe
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @Online5277

Base: main ← Head: icon/blockscope


📝 Commits (1)

  • d650116 blockscope: an icon the launcher can fetch

📊 Changes

2 files changed (+1 additions, -1 deletions)

View changed files

➕ icons/blockscope.png (+0 -0)
📝 mods/blockscope.toml (+1 -1)

📄 Description

🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself.

Blockscope shows no icon in the launcher's Mods page. The entry's icon is a raw.githubusercontent.com URL, and the launcher fetches project images from a short host list only — Modrinth's and CurseForge's CDNs plus this registry's Pages (launcher/src/browser/images.rs, HOSTS). Everything else is refused before a request is made.

This adds the icon here, the way the other entries have theirs:

  • icons/blockscope.png: the mod's own icon, 256×256 RGBA, the size biomecompass.png and the rest use.
  • mods/blockscope.toml: icon now names https://horizon-rust.github.io/horizon-mods/icons/blockscope.png, which publish.yml serves by copying icons/ to the site root.

Checked:

  • https://horizon-rust.github.io/horizon-mods/icons/biomecompass.png → 200 image/png, so that URL shape is what the launcher can fetch.
  • https://horizon-rust.github.io/horizon-mods/icons/blockscope.png → 404 before this PR, and icons/zoom.png → 404 too (a mod with no file here), so an entry's icon only works when its file exists.

Nothing else about the entry changes: same id, same two .hmod versions and their SHA-256s.

One thing for the reviewer: a 0.3.0 native version is being submitted separately through the form, which regenerates this file from the form's fields. Whichever of the two lands second keeps the icon working, since the file is what makes the URL live; if the form's submission replaces the icon line, the index derives the same URL from icons/blockscope.png anyway.


🔄 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-mods/pull/46 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@Online5277](https://github.com/Online5277) **Base:** `main` ← **Head:** `icon/blockscope` --- ### 📝 Commits (1) - [`d650116`](https://github.com/horizon-rust/horizon-mods/commit/d6501160e12d81915f682b11b5672e8bd1a10b86) blockscope: an icon the launcher can fetch ### 📊 Changes **2 files changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `icons/blockscope.png` (+0 -0) 📝 `mods/blockscope.toml` (+1 -1) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. Blockscope shows no icon in the launcher's Mods page. The entry's `icon` is a `raw.githubusercontent.com` URL, and the launcher fetches project images from a short host list only — Modrinth's and CurseForge's CDNs plus this registry's Pages (`launcher/src/browser/images.rs`, `HOSTS`). Everything else is refused before a request is made. This adds the icon here, the way the other entries have theirs: - `icons/blockscope.png`: the mod's own icon, 256×256 RGBA, the size `biomecompass.png` and the rest use. - `mods/blockscope.toml`: `icon` now names `https://horizon-rust.github.io/horizon-mods/icons/blockscope.png`, which `publish.yml` serves by copying `icons/` to the site root. Checked: - `https://horizon-rust.github.io/horizon-mods/icons/biomecompass.png` → `200 image/png`, so that URL shape is what the launcher can fetch. - `https://horizon-rust.github.io/horizon-mods/icons/blockscope.png` → `404` before this PR, and `icons/zoom.png` → `404` too (a mod with no file here), so an entry's icon only works when its file exists. Nothing else about the entry changes: same id, same two `.hmod` versions and their SHA-256s. One thing for the reviewer: a 0.3.0 native version is being submitted separately through the form, which regenerates this file from the form's fields. Whichever of the two lands second keeps the icon working, since the file is what makes the URL live; if the form's submission replaces the `icon` line, the index derives the same URL from `icons/blockscope.png` anyway. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:02:52 +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-mods#54
No description provided.