Updating libraries within an app

Asked by jay_eagle

Hopefully I am not repeating an already solved question...as I've searched through the kb.

Is it possible to update an individual library? I am calling various libraries that are linked in with my app, but they frequently need to be updated independent of the app itself. Is this possible or would a full app update be required?

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
Sparkle Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andy Matuschak (andymatuschak) said :
#1

This isn't quite as easy to do as everything else. You can use a .pkg to update the library, or you can write a custom SUInstaller subclass.

Revision history for this message
jay_eagle (jason-eagle) said :
#2

I think I should have been more specific...

So this is the structure that I am inquiring about:

TestApplication.app/Contents/Framework/libTestApiLib.dylib

TestApplication.app is a normal app but we have some libraries that we want to update independent of the entire application.

If I have a new TestApplication.dmg file where the only difference between the current version and the new version is an updated dylib file, will sparkle know that an update is required? And if so, will it just update the diff (i.e. the new dylib file) and leave everything else the same?

Hopefully this question was more clear/verbose.

Thanks,
Jason

Revision history for this message
Andy Matuschak (andymatuschak) said :
#3

Presently, Sparkle won't know what to do with a dmg with just the changed dylib. But that feature is actually implemented and will be coming in the future.

In the meantime, you'd have to use a custom SUInstaller to apply that update.

Can you help with this problem?

Provide an answer of your own, or ask jay_eagle for more information if necessary.

To post a message you must log in.