
alternate update message
Reported by Aparajita | November 4th, 2009 @ 02:06 PM
Sometimes I need to make changes to the Mac application bundle that cannot be updated via the internet update mechanism. In cases like that, if the application is running on Mac OS X, the update dialog should say, "A new version is available for download.", and there should be two buttons: Download and Cancel. Clicking the download button will open the URL:
http://songscribe.org/files/downloads/SongScribe.dmg
So how do we know that a download is necessary?
-
I could create a file called "mac_download" in the root directory, which could contain "true" or "false" or something like that.
-
The dist ant task will examine that file, if it contains "true", add * to the end of the checksums file header, so it says "SongScribe update*".
-
In UpdateDialog.run(), check for the *. If it is there, first download version and compare that version with the local version.
-
If they differ, an update is available, show the download dialog.
Comments and changes to this ticket
-
Csaba November 24th, 2009 @ 06:46 AM
In the checksums file we know if the SongScribe.dmg has been changes. We can hardcode this as a special file on Mac, so if it changed, instead of starting the normal overwriting update mechanism, it opens the specified URL.
After wards the program may say again new version available, because the normal update didn't take place.
Opinion? -
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
SongScribe is a song editor program especially designed to support music composed by Maestro Sri Chinmoy.