Skip to content

- fix mac task icon creation (see desc) - #475

Merged
shannah merged 1 commit into
shannah:masterfrom
jpage4500:feature/08-11-mac-icons
Aug 11, 2026
Merged

- fix mac task icon creation (see desc)#475
shannah merged 1 commit into
shannah:masterfrom
jpage4500:feature/08-11-mac-icons

Conversation

@jpage4500

Copy link
Copy Markdown
Contributor
  • The diff touches only MacBundler.java (43+/16−, one file).
  • Windows has a completely separate path: InstallWindows.java:193 reads icon.png from the bundle dir and encodes a .ico via image4j's ICOEncoder. Linux just points Icon={{APP_ICON}} in the .desktop file at icon.png. Neither goes near MacBundler.
  • Both new file operations (createThumbnails, cleanThumbnails) work strictly inside the mac bundle's Contents/, which no other platform reads. The thumbnails are files MacBundler itself just created, and iconFile.delete() was already there.
  • The change uses only Thumbnails (Thumbnailator) and IcnsType/IcnsBuilder — pure Java, no iconutil or other macOS tooling. So mac bundles still build correctly from Linux/Windows CI. (iconutil appeared only in my ADM script and my verification, never in the jdeploy patch.)

  - The diff touches **only** `MacBundler.java` (43+/16−, one file).
  - Windows has a completely separate path: `InstallWindows.java:193` reads `icon.png` from the bundle dir and encodes a `.ico` via image4j's `ICOEncoder`. Linux just points `Icon={{APP_ICON}}` in the `.desktop` file at `icon.png`. Neither goes near `MacBundler`.
  - Both new file operations (`createThumbnails`, `cleanThumbnails`) work strictly inside the mac bundle's `Contents/`, which no other platform reads. The thumbnails are files `MacBundler` itself just created, and `iconFile.delete()` was already there.
  - The change uses only `Thumbnails` (Thumbnailator) and `IcnsType`/`IcnsBuilder` — pure Java, no `iconutil` or other macOS tooling. So mac bundles still build correctly from Linux/Windows CI. (`iconutil` appeared only in my ADM script and my verification, never in the jdeploy patch.)
@shannah
shannah merged commit ae07d3e into shannah:master Aug 11, 2026
19 checks passed
@shannah

shannah commented Aug 11, 2026

Copy link
Copy Markdown
Owner

Thanks @jpage4500

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants