Skip to content

build: give jpackage a Windows/Linux app icon - #7773

Merged
Vest merged 2 commits into
PCGen:masterfrom
Vest:fix-jpackage-icon
Oct 29, 2026
Merged

Vest merged 2 commits into
PCGen:masterfrom
Vest:fix-jpackage-icon

Conversation

@Vest

@Vest Vest commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Native Windows and Linux packages show jpackage's generic Java icon because the build does not pass --icon. This change supplies the application icon when creating the app image.

  • Windows uses installers/win-installer/Local/PCGen2.ico, restoring the gold Vitruvian-man artwork used by the previous Windows installer for desktop and Start menu shortcuts.
  • Linux uses the existing 128×128 code/src/images/PCGenApp.png.
  • macOS continues to use PcGen.icns from installers/mac-installer.

Validation: ./gradlew fullJpackage --dry-run --offline passed with Temurin 25 and stored a configuration-cache entry. git diff --check passed. The Windows asset was visually inspected and confirmed against the legacy installer's shortcut configuration; both icon assets have the required file formats.

Native Windows/Linux installer builds and visual checks of the installed shortcuts are still needed. The macOS dry run does not execute those platform branches, and the regular PR CI does not build native installers.

Vest added 2 commits October 29, 2026 08:57
jpackage never passed --icon, so only macOS (which picks up PcGen.icns
from resourceDir by app-name convention) got the PCGen logo. Windows
shortcuts and Linux launchers fell back to the default Java icon.

Pass the Vitruvian-man logo explicitly per platform: PCGenIcon.ico on
Windows and PCGenApp.png on Linux. macOS is unchanged.
@Vest
Vest marked this pull request as ready for review October 29, 2026 09:00
@Vest
Vest merged commit 882680a into PCGen:master Oct 29, 2026
4 checks passed
@Vest
Vest deleted the fix-jpackage-icon branch October 29, 2026 09:00
@github-actions

Copy link
Copy Markdown
Contributor

🚧 PCGen Code Coverage

Overall Project 27.02% ❌

There is no coverage information present for the Files changed

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.

1 participant