Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): Include standard Linux AppImage icons for Niri/Noctalia #2915

Mergedmwolson(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/2915/headmerged by juliusmarminge View on GitHub

Summary

Closes #2331.

This adds standard hicolor icon sizes to Linux AppImage builds so AppImageLauncher and desktop shells can resolve the integrated T3 Code icon reliably.

Problem and Fix

Problem and Why it HappenedFix
The AppImage build only staged a single large icon.png, which some desktop icon lookups (such as Noctalia on Niri) do not resolve after AppImageLauncher integration.Generate standard hicolor PNG sizes from the selected Linux icon source and point electron-builder at the generated icon directory.
Linux release runners may not have the ImageMagick command needed to generate resized icons.Install ImageMagick in the Linux release job when neither magick nor convert is available.

Validation

  • bun fmt
  • bun lint
  • bun typecheck
  • bun run --filter @t3tools/scripts test -- build-desktop-artifact

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes: N/A, packaging-only change
  • I included a video for animation/interaction changes: N/A

Open in Devin Review

Note

Low Risk Packaging and CI-only changes with no runtime app logic, auth, or data handling impact.

Overview Linux AppImage packaging now stages a full hicolor-style icon set (16–512px PNGs under icons/) instead of relying on a single icon.png, and electron-builder is pointed at that directory so launchers and AppImageLauncher can resolve the app icon reliably.

The desktop build script resizes icons with ImageMagick (magick, falling back to convert), and the Linux release workflow installs ImageMagick when neither command is present. The Windows Spectre MSVC step is only re-indented.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 031b21008b6520f1a33469b546b229e39d25cb55. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Include standard Linux AppImage icons by generating resized PNGs with ImageMagick

  • Adds stageLinuxIconSize to build-desktop-artifact.ts which uses magick (falling back to convert) to generate PNGs at standard Linux icon sizes [16, 22, 24, 32, 48, 64, 128, 256, 512].
  • Updates stageLinuxIcons to populate an icons/ directory with these resized images, and updates createBuildConfig to point Electron Builder at that directory instead of a single icon.png.
  • Adds an 'Install ImageMagick' step in release.yml to ensure ImageMagick is available on Linux runners before the build runs.
  • Risk: if neither magick nor convert is present and the apt install step fails, the Linux build will fail with a BuildScriptError.
Macroscope summarized 031b210.
    1. Important

      Review skipped

      Auto reviews are disabled on this repository. 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: Repository UI

      Review profile: CHILL

      Plan: Pro

      Run ID: 2533a61c-c389-4b03-bae1-0ce1dd3ee387

      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
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests

      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 and usage tips.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. Approvability

      Verdict: Approved

      Build/CI-only changes that add ImageMagick installation and icon generation for Linux AppImage packaging. No application runtime behavior is affected - this is purely about generating proper icon sizes during the desktop build process.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. mwolson(GitHub profile, opens in a new tab) changed the title

    5. juliusmarminge merged thisf0116e4

    6. juliusmarminge closed this

Sign in to join this conversation.