Skip to content

feat(v3): generate Linux hicolor icons - #5918

Closed
mortenolsrud wants to merge 2 commits into
wailsapp:codex/mpress-markdownfrom
mortenolsrud:feat/linux-hicolor-icons
Closed

mortenolsrud wants to merge 2 commits into
wailsapp:codex/mpress-markdownfrom
mortenolsrud:feat/linux-hicolor-icons

Conversation

@mortenolsrud

Copy link
Copy Markdown
Contributor

Summary

  • add opt-in -linuxoutputdir and independent -linuxsizes flags to wails3 generate icons
  • generate exact square PNGs with Go-native Catmull–Rom resizing, preserved aspect ratio, transparent padding, and deterministic encoding
  • stage the complete icon set on the destination filesystem and use a recoverable directory swap so failed encoding never replaces valid output
  • update fresh-project Taskfiles to track all seven default outputs and install them into matching hicolor directories for DEB, RPM, and Arch packages
  • preserve the legacy single-icon nFPM mapping when update build-assets detects an older Taskfile that cannot generate the new files
  • document the canonical-source/generated-file policy and custom-size packaging contract

Compatibility

The existing Windows/macOS options and ICO -sizes parsing are unchanged. Raw Linux generation is opt-in. Fresh projects receive the new Taskfile and package mappings; existing projects keep packageable legacy behavior until their preserved Taskfile declares the complete default Linux set.

The portable directory swap is recoverable rather than a lock-protected atomic exchange: readers may briefly see the output directory absent between renames, but they never see partially written PNGs, and the next invocation restores the previous complete set after interruption.

Verification

  • go test ./internal/commands ./internal/packager -count=1
  • targeted go test -race for Linux generation and build-asset compatibility
  • go vet ./internal/commands
  • Windows amd64 and Darwin arm64 command-test cross-builds
  • generated nFPM content preparation checked for deb, rpm, and archlinux
  • git diff --check

Closes #5917.
Related to #4025.

@github-actions github-actions Bot added Documentation Improvements or additions to documentation cli v3-alpha labels Aug 6, 2026
@taliesin-ai taliesin-ai added v3 and removed v3-alpha labels Aug 9, 2026
@taliesin-ai
taliesin-ai changed the base branch from master to codex/mpress-markdown September 18, 2026 11:41
@taliesin-ai

Copy link
Copy Markdown
Collaborator

Ported the hicolor documentation to M-Press Markdown in cc19445, stacked on #6137 by merging codex/mpress-markdown at 7b0f6dc. The original PR commits remain in ancestry.

All six affected pages are reconciled in English and all nine locales (de, fr, pt, ru, ja, ko, zh-cn, zh-tw, id): build-system concepts, Linux/macOS packaging, CLI guide, project structure and CLI reference. This preserves the canonical-source/generated-assets policy, seven default hicolor sizes, deterministic resize/padding behaviour, old-project Taskfile compatibility and custom-size nFPM contract. Flag defaults were checked against IconsOptions. Existing pages retain their navigation and routes; no new page is needed. Retired CLI MDX is removed.

No implementation conflicts required a semantic resolution. All seven hicolor implementation/test/template files are byte-for-byte identical to original head 7c76baf. The CLI README icon section is also identical; the migration parent's newer MCP documentation is retained. The merge conflicts were only Markdown conversion conflicts (callout/table/retired file). Unreleased entries, v2 website and audit tooling/state are unchanged relative to the migration parent.

Validation:

  • Pinned M-Press 1.0.17 build --strict --no-purge-css: passed, 2,010 pages / 2,167 files.
  • mpress check: passed; no broken links or assets.
  • python3 docs/mpress/scripts/check_site.py docs/mpress/site: passed, 2,011 HTML pages, zero errors.
  • go test ./internal/commands ./internal/packager -count=1: passed.
  • Complete translation coverage, all 60 affected rendered pages, nine icon flags/exact defaults in every locale, identical hicolor command examples, shell syntax, preservation audit and port whitespace checks: passed.

The global translation segment audit remains blocked by migration parser/state work. Baseline 7,678 findings versus port 7,698: 114 added / 94 removed, net +20. All added reports are within these six changed pages; reports include shifted segment identities and translated inline-code/prose boundaries. The translations are complete, but this is not an audit pass. No exemptions, bypasses or fabricated state were introduced. The translation task owns the fixed upstream auditor; the 33 findings on #5819 remain for verification with that auditor when ready.

Before committing, coderabbit --plain rejected the unsupported option. The single narrow fallback coderabbit review --uncommitted --light --dir docs/mpress/content/guides/build hit the shared OSS quota. Manual review and the checks above completed without spending credits, polling or waiting for quota reset. Inherited migration changes were kept separate from the port review.

Committed as taliesin-ai <[email protected]> with a chore(docs) message and pushed fast-forward to the existing fork branch. Base changed to codex/mpress-markdown after successful push; no force push or replacement PR.

@coderabbitai

coderabbitai Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • master

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: df9404e8-2b2f-4ceb-b973-147812e0b824

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Documentation Improvements or additions to documentation v3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(v3/linux): generate correctly sized hicolor icons for Linux packages

3 participants