iris-gui: real version in Help menu + fix glyphs that render as boxes#32
Merged
Merged
Conversation
- Add iris-gui/build.rs to bake RELEASE_VERSION (set by CI) into APP_VERSION at compile time, falling back to the Cargo.toml version + "-dev" for local debug builds. The Help menu shows APP_VERSION instead of the static CARGO_PKG_VERSION. - Fix glyphs/arrows that render as empty boxes in egui's bundled fonts: drop the ↶ on "Restore state" (not in the font) and replace the U+2192 arrow (→) with "->" in all user-visible labels and toasts. The ▶ ■ 💾 glyphs do render and are kept. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Consolidate scsi*.raw / cdrom4.iso into wildcards for the disk-image extensions iris reads/writes: *.raw *.iso *.chd *.img (none are tracked). - Ignore generated outputs: saves/ (snapshot store written by ci.rs) and screenshot_*.png (REX3 auto-screenshots). - Add prom.bin (PROM dumps) and .DS_Store. Kept as explicit .bin entries rather than *.bin since nvram.bin is a tracked file. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
scsi_menu.rs used the U+2192 arrow in "Enable COW overlay (writes → .overlay)", which renders as an empty box in egui's bundled fonts — same class of fix as the config_ui.rs / main.rs arrows in this PR; this file was missed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No emulation/functional changes — UI text and build metadata only.
1. Show the real version in the Help menu
The Help menu hard-codes
CARGO_PKG_VERSION, so every build reports0.1.0.This adds
iris-gui/build.rs, which bakes aRELEASE_VERSIONenv var (if set)into
APP_VERSIONat compile time, falling back to the crate version with a-devsuffix for local debug builds.RELEASE_VERSIONunset, release builds still show0.1.0and debug builds show0.1.0-dev. No CI change required.RELEASE_VERSIONand the Helpmenu reflects it automatically.
2. Fix glyphs/arrows that render as empty boxes
A few characters aren't in egui's bundled fonts and show as ☐:
↶on the "Restore state" button → dropped (plain text).→(U+2192) in several labels/toasts (serial-log hint, COW-overlay label,port-forward "→ guest", PROM-fallback and rename toasts) → replaced with
->.▶,■, and💾do render in the bundled fonts and are kept.3.
.gitignoreConsolidate
scsi*.raw/cdrom4.isointo wildcards for the disk-image types theemulator reads/writes (
*.raw *.iso *.chd *.img), and ignore generated outputs(
saves/snapshot store,screenshot_*.png) plus.DS_Store..binis left asexplicit entries since
nvram.binis tracked.Test plan
cargo build -p iris-gui→ Help menu shows0.1.0-devRELEASE_VERSION=2026-06-09-0200 cargo build --release -p iris-gui→ Help menushows
2026-06-09-0200with no empty boxes.