Sparkle Framework: how to change the name of the application?

I have a Cocoa application for which I changed the name. I use the excellent Sparkle Framework ( http://sparkle-project.org ) to provide updates to my users.

Unfortunately, it seems that Sparkle does not support changing the name of the application out of the box. I hope there is a hack so that I can provide users who already have the application with an update for the new version.

+4
source share
1 answer

I am not sure that this is possible using only a felt base. The reason is that the application file name may differ from the CFBundleName defined in Info.plist. Sparkle needs to make sure that it updates the correct file system structure, regardless of what it may be named.

Consider the following scenario:

  • The user downloads and installs Adium.app , whose CFBundleName is Adium .
  • The user renames it to Instant Messenger.app .
  • Sparkle downloads and installs the update.
  • After the update, the file name of the updated application is still Instant Messenger.app , and the name CFBundleName is still Adium .

You can either hope that the fact that your application name has changed in the menu bar will prompt the user to rename it on their own, or you can pull some cheats when starting the application to exit the application, rename it and restart if certain criteria are met. I do not recommend the latter, although users do not like applications that have decided to move around without problems.

+4
source

All Articles