Opened 13 years ago

Closed 13 years ago

#2859 closed defect (invalid)

Mac OS X bundles are missing Contents/Resources/application.icns

Reported by: mythtv@… Owned by: Nigel
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

When building on Mac OS X, the generated application bundles no longer have their icons.

The cause appears to be that that application bundles are missing Contents/Resources?/application.icns

The bundles are generated properly in 20-fixes, so this is a new problem on the head.

Change History (4)

comment:1 Changed 13 years ago by Nigel

Owner: changed from Isaac Richards to Nigel
Status: newassigned

Hmm. On my build, the Icon file is there, but not being used.
It might be a problem with my new osx-bunder.pl script

comment:2 Changed 13 years ago by Nigel

Resolution: fixed
Status: assignedclosed

(In [12413]) Prevent needless .app bundling on Mac OS X, major reworking of the packager script to use external bundling utility (less code), should now always create icons correctly. Closes #2859

comment:3 in reply to:  2 Changed 13 years ago by anonymous

Resolution: fixed
Status: closedreopened

"make install" on Mac OS X used to generate the app bundles in /usr/local/bin. Now it only generates the command line executables, leaving no way to launch the frontend from the Finder. I tried running "contrib/OSX/osx-bundler.pl /usr/local/bin/mythfrontend /usr/local/lib" to generate the app bundle, but the bundle that was created had no Resources directory, and thus, no icon. Is there some other step that I need to do generate the app bundle properly?

To get by for now, I moved the bundle created by osx-bundler.pl into /Applications, removed the Frameworks tree (seemed redundant), manually created the Resouces/application.icns file, and then made MacOS/mythfrontend a symbolic link to /usr/local/bin/mythfrontend. That works for now, and will survive future "make install"s.

comment:4 Changed 13 years ago by Nigel

Resolution: invalid
Status: reopenedclosed

A plain configure/qmake/make will only generate binaries now. Same as on Linux.
The two ways to build a bundle with an icon are;
1) configure with --enable-mac-bundle, and
2) use contrib/OSX/osx-packager.pl to build everything.
I may add a --icon option to osx-bundler.pl, but don't hold your breath!

Note: See TracTickets for help on using tickets.