Skip to content

fix: app icon not showing on macOS and Windows#1085

Open
minoseigenheer wants to merge 1 commit into
collin80:QT6WIPfrom
minoseigenheer:fix/app-icon-macos-windows
Open

fix: app icon not showing on macOS and Windows#1085
minoseigenheer wants to merge 1 commit into
collin80:QT6WIPfrom
minoseigenheer:fix/app-icon-macos-windows

Conversation

@minoseigenheer

Copy link
Copy Markdown

macOS:

  • Replace broken RESOURCE property with set_source_files_properties MACOSX_PACKAGE_LOCATION approach so the .icns is correctly copied into SavvyCAN.app/Contents/Resources/ during the build
  • Add Info.plist.cmake with proper CMake variables (CFBundleIconFile set to SavvyIcon) replacing the qmake-only Info.plist.template that used incompatible ${ASSETCATALOG_COMPILER_APPICON_NAME} variable

Windows:

  • Add icons/SavvyIcon.rc resource file that was referenced in CMakeLists.txt but missing, which caused the .ico to not be embedded in the executable

macOS:
- Replace broken RESOURCE property with set_source_files_properties
  MACOSX_PACKAGE_LOCATION approach so the .icns is correctly copied
  into SavvyCAN.app/Contents/Resources/ during the build
- Add Info.plist.cmake with proper CMake variables (CFBundleIconFile set
  to SavvyIcon) replacing the qmake-only Info.plist.template that used
  incompatible ${ASSETCATALOG_COMPILER_APPICON_NAME} variable

Windows:
- Add icons/SavvyIcon.rc resource file that was referenced in
  CMakeLists.txt but missing, which caused the .ico to not be
  embedded in the executable
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