[PR #167] [MERGED] Horizon's mark and its icon everywhere #2369

Closed
opened 2026-11-02 15:55:23 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/167
Author: @ludovic111
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @ludovic111

Base: main ← Head: feat/design-icon


📝 Commits (2)

  • fcbbff2 Give Horizon a mark, and its icon everywhere
  • a248e92 Ship the launcher as Horizon.app in a .dmg, and in Linux's menus

📊 Changes

58 files changed (+1038 additions, -70 deletions)

View changed files

📝 .github/workflows/launcher.yml (+16 -9)
📝 Cargo.lock (+44 -0)
📝 crates/horizon-client/Cargo.toml (+4 -0)
➕ crates/horizon-client/build.rs (+15 -0)
📝 crates/horizon-client/src/game.rs (+9 -2)
📝 crates/horizon-client/src/window.rs (+20 -0)
➕ crates/horizon-theme/icons/horizon-64.png (+0 -0)
📝 crates/horizon-theme/src/lib.rs (+4 -0)
➕ docs/media/brand/README.md (+54 -0)
➕ docs/media/brand/avatar-kira.svg (+8 -0)
➕ docs/media/brand/avatar.svg (+8 -0)
➕ docs/media/brand/candidates/a-sun-slices.svg (+1 -0)
➕ docs/media/brand/candidates/b-horizon-h.svg (+10 -0)
➕ docs/media/brand/candidates/c-sunrise.svg (+1 -0)
➕ docs/media/brand/icon-1024.png (+0 -0)
➕ docs/media/brand/icon-macos-1024.png (+0 -0)
➕ docs/media/brand/icon-macos.svg (+12 -0)
➕ docs/media/brand/icon.svg (+10 -0)
➕ docs/media/brand/mark-dark.svg (+6 -0)
➕ docs/media/brand/mark.svg (+6 -0)

...and 38 more files

📄 Description

Stacked on #166 (tokens). Horizon's mark (B, Ludovic's pick), every export of it, and the launcher's packaging per platform.

The mark: an H whose crossbar is the horizon: a violet line edge to edge, the stems above it and their reflection below at a third, on whole units of a 16-unit grid (sharp at 16 px, holds at 1024). Original drawing.

candidates

Windows: icon embedded in every exe ✅

build.rs embeds packaging/icons/horizon.ico as icon resource 1 (winresource, Windows-only build dependency) in horizon-client, horizon-ctl and horizon-launcher; gpui loads resource 1 as the launcher's window icon.

Checked by downloading the Windows artifacts and dumping each exe's PE resources: 7 RT_ICON (16–256, PNG) + RT_GROUP_ICON 1, rebuilt byte for byte identical to horizon.ico in all three. (horizon-prepare.exe is a command-line tool with no window and has no icon.)

windows-exe-icons

macOS: Horizon.app in a .dmg

packaging/macos/package.sh (run by launcher.yml's macOS job): Horizon.app (Info.plist, bundle id dev.horizon.launcher, LSMinimumSystemVersion 11.0, horizon.icns), signed ad hoc, then two release assets:

  • horizon-launcher-macos-arm64.dmg: the installer: the app and an Applications link over a background, to drag one onto the other (laid out by dmgbuild, no GUI session needed).
  • horizon-launcher-macos-arm64.zip: what the launcher updates itself from.

Self-update: a launcher inside Horizon.app replaces the whole bundle in place: the new app is copied next to the old one with ditto, the old one is renamed aside, the new one renamed in, then the launcher restarts. A launcher that is still a bare binary (every launcher released so far) finds the binary inside the zip and replaces just itself, as before. A macOS test runs that path end to end on a signed bundle: ditto-zipped, unpacked by the launcher, swapped in, and codesign --verify --strict still passes.

Tested on the Mac mini: built, packaged, hdiutil verify OK, mounted (Horizon.app, Applications -> /Applications, .background.tiff at 1×/2×, .DS_Store), plutil/codesign -dv show the bundle id and an ad hoc signature, and open Horizon.app starts it (LaunchServices registers dev.horizon.launcher). The packaging also passed in CI: launcher run 38630279989 ✅; after rebasing onto the release train: launcher run 38633410396.

The .dmg window: a Finder window can't be captured over SSH (no screen access), so this is a mock built from the dmg's real background and icon positions:
dmg

Gatekeeper (unsigned by Apple): ad hoc signing needs no Apple account, but Gatekeeper doesn't know the developer. The first time after downloading: on macOS 14 and earlier, right-click Horizon › Open › Open; on macOS 15 and later, open it once (refused), then System Settings › Privacy & Security › Open Anyway. Updates the launcher installs itself carry no quarantine flag and don't ask again. To sign and notarize (Ludovic's Apple Developer account): put the "Developer ID Application" certificate in the runner's keychain and set MACOS_SIGN_IDENTITY; package.sh then signs with the hardened runtime, and notarytool submit + stapler staple finish it (steps in packaging/macos/README.md).

Linux: the applications menu

Release builds keep horizon-launcher.desktop (with the binary's current path in Exec), horizon.desktop (hidden; gives the game's Wayland window its icon) and the hicolor icons (16–512 + scalable) under $XDG_DATA_HOME (~/.local/share). No root needed; the files are rewritten if the binary moves. horizon-launcher desktop-entry --remove takes them out and stops the launcher re-adding them; desktop-entry puts them back. #168 adds a Settings switch. Tested on the ThinkPad: install, follow a moved binary, remove, stay removed. desktop-file-validate passes on both entries. Here fuzzel (a Wayland app launcher) finds the entry with its icon:
linux-menu

The rest

  • docs/media/brand/: SVG masters, the alternatives, the GitHub social preview, the Discord banner, and a README with the upload steps.
  • cargo run -p xtask -- icons: renders everything and packs the .ico/.icns in Rust.
  • The game window sets its icon at run time (X11, Windows) and names itself horizon on Wayland.

Draft: nothing merges before Ludovic says yes.

🤖 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/167 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/design-icon` --- ### 📝 Commits (2) - [`fcbbff2`](https://github.com/horizon-rust/horizon/commit/fcbbff26a7a89ebd82fdfa8f283b1766a2a30d86) Give Horizon a mark, and its icon everywhere - [`a248e92`](https://github.com/horizon-rust/horizon/commit/a248e9242a27ced44fe33f36076fedb87ff626d8) Ship the launcher as Horizon.app in a .dmg, and in Linux's menus ### 📊 Changes **58 files changed** (+1038 additions, -70 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/launcher.yml` (+16 -9) 📝 `Cargo.lock` (+44 -0) 📝 `crates/horizon-client/Cargo.toml` (+4 -0) ➕ `crates/horizon-client/build.rs` (+15 -0) 📝 `crates/horizon-client/src/game.rs` (+9 -2) 📝 `crates/horizon-client/src/window.rs` (+20 -0) ➕ `crates/horizon-theme/icons/horizon-64.png` (+0 -0) 📝 `crates/horizon-theme/src/lib.rs` (+4 -0) ➕ `docs/media/brand/README.md` (+54 -0) ➕ `docs/media/brand/avatar-kira.svg` (+8 -0) ➕ `docs/media/brand/avatar.svg` (+8 -0) ➕ `docs/media/brand/candidates/a-sun-slices.svg` (+1 -0) ➕ `docs/media/brand/candidates/b-horizon-h.svg` (+10 -0) ➕ `docs/media/brand/candidates/c-sunrise.svg` (+1 -0) ➕ `docs/media/brand/icon-1024.png` (+0 -0) ➕ `docs/media/brand/icon-macos-1024.png` (+0 -0) ➕ `docs/media/brand/icon-macos.svg` (+12 -0) ➕ `docs/media/brand/icon.svg` (+10 -0) ➕ `docs/media/brand/mark-dark.svg` (+6 -0) ➕ `docs/media/brand/mark.svg` (+6 -0) _...and 38 more files_ </details> ### 📄 Description Stacked on #166 (tokens). Horizon's mark (**B**, Ludovic's pick), every export of it, and the launcher's packaging per platform. **The mark:** an H whose crossbar is the horizon: a violet line edge to edge, the stems above it and their reflection below at a third, on whole units of a 16-unit grid (sharp at 16 px, holds at 1024). Original drawing. ![candidates](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/icon/candidates.png) ## Windows: icon embedded in every exe ✅ `build.rs` embeds `packaging/icons/horizon.ico` as icon resource 1 (`winresource`, Windows-only build dependency) in `horizon-client`, `horizon-ctl` and `horizon-launcher`; gpui loads resource 1 as the launcher's window icon. - Game exes: [release builds run 38628322798](https://github.com/ludovic111/horizon/actions/runs/38628322798) ✅ (windows + linux) - Launcher: [launcher run 38628327685](https://github.com/ludovic111/horizon/actions/runs/38628327685) ✅ (linux, macos, windows) Checked by downloading the Windows artifacts and dumping each exe's PE resources: 7 RT_ICON (16–256, PNG) + RT_GROUP_ICON 1, rebuilt **byte for byte identical** to `horizon.ico` in all three. (`horizon-prepare.exe` is a command-line tool with no window and has no icon.) ![windows-exe-icons](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/packaging/windows-exe-icons.png) ## macOS: Horizon.app in a .dmg `packaging/macos/package.sh` (run by `launcher.yml`'s macOS job): **Horizon.app** (Info.plist, bundle id `dev.horizon.launcher`, LSMinimumSystemVersion 11.0, `horizon.icns`), signed **ad hoc**, then two release assets: - `horizon-launcher-macos-arm64.dmg`: the installer: the app and an Applications link over a background, to drag one onto the other (laid out by dmgbuild, no GUI session needed). - `horizon-launcher-macos-arm64.zip`: what the launcher updates itself from. **Self-update:** a launcher inside Horizon.app replaces the **whole bundle** in place: the new app is copied next to the old one with `ditto`, the old one is renamed aside, the new one renamed in, then the launcher restarts. A launcher that is still a bare binary (every launcher released so far) finds the binary inside the zip and replaces just itself, as before. A macOS test runs that path end to end on a signed bundle: ditto-zipped, unpacked by the launcher, swapped in, and `codesign --verify --strict` still passes. Tested on the Mac mini: built, packaged, `hdiutil verify` OK, mounted (`Horizon.app`, `Applications -> /Applications`, `.background.tiff` at 1×/2×, `.DS_Store`), `plutil`/`codesign -dv` show the bundle id and an ad hoc signature, and `open Horizon.app` starts it (LaunchServices registers `dev.horizon.launcher`). The packaging also passed in CI: [launcher run 38630279989](https://github.com/ludovic111/horizon/actions/runs/38630279989) ✅; after rebasing onto the release train: [launcher run 38633410396](https://github.com/ludovic111/horizon/actions/runs/38633410396). The .dmg window: a Finder window can't be captured over SSH (no screen access), so this is a mock built from the dmg's real background and icon positions: ![dmg](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/packaging/dmg-window.png) **Gatekeeper (unsigned by Apple):** ad hoc signing needs no Apple account, but Gatekeeper doesn't know the developer. The first time after downloading: on macOS 14 and earlier, right-click Horizon › **Open** › **Open**; on macOS 15 and later, open it once (refused), then **System Settings › Privacy & Security › Open Anyway**. Updates the launcher installs itself carry no quarantine flag and don't ask again. **To sign and notarize** (Ludovic's Apple Developer account): put the "Developer ID Application" certificate in the runner's keychain and set `MACOS_SIGN_IDENTITY`; `package.sh` then signs with the hardened runtime, and `notarytool submit` + `stapler staple` finish it (steps in `packaging/macos/README.md`). ## Linux: the applications menu Release builds keep `horizon-launcher.desktop` (with the binary's current path in `Exec`), `horizon.desktop` (hidden; gives the game's Wayland window its icon) and the hicolor icons (16–512 + scalable) under `$XDG_DATA_HOME` (`~/.local/share`). No root needed; the files are rewritten if the binary moves. `horizon-launcher desktop-entry --remove` takes them out and stops the launcher re-adding them; `desktop-entry` puts them back. #168 adds a Settings switch. Tested on the ThinkPad: install, follow a moved binary, remove, stay removed. `desktop-file-validate` passes on both entries. Here fuzzel (a Wayland app launcher) finds the entry with its icon: ![linux-menu](https://raw.githubusercontent.com/ludovic111/horizon/64d53bb1d5d8163ef2eea0c8e0196f8549c668c5/round2/packaging/linux-app-menu.png) ## The rest - `docs/media/brand/`: SVG masters, the alternatives, the GitHub social preview, the Discord banner, and a README with the upload steps. - `cargo run -p xtask -- icons`: renders everything and packs the .ico/.icns in Rust. - The game window sets its icon at run time (X11, Windows) and names itself `horizon` on Wayland. **Draft: nothing merges before Ludovic says yes.** 🤖 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-02 15:55:23 +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#2369
No description provided.