-
Notifications
You must be signed in to change notification settings - Fork 17
Auto updates
This explains how we use the Sparkle Framework in order to make Mockingbird auto update every time there is a new release.
The appcast is the file we use to provide the application information about the latest release of the app. In the mockingbird project you can find it here. More information about creating and publishing an appcast can be found here.
In order to make the auto update work it will be needed to add two entries to the applications info.plist
file.
The first one is a key that is used as a security measure to prevent malicious software from being downloaded instead of the intended software. More information on how to create this key on this link. After creating the key it will be needed to add it to the info.plist
file. This entry must be a string, have SUPublicEDKey
as its key and the key that was created as a string value. As an example, our entry looks like this:
<key>SUPublicEDKey</key>
<string>CDw2xInMlNL3hNPLvGXwXrclHyDR95zQD7lC7rNw/5M=</string>
The second entry is used to tell the application where it can find the appcast file on the internet. This entry must be a string, have SUFeedURL
as its key and the Appcast's URL as a string value. For example, our entry looks like this:
<key>SUFeedURL</key>
<string>https://raw.githubusercontent.com/Farfetch/mockingbird/master/.updates/appcast.xml</string>
In order to install the new version of the application after it has been downloaded, your application needs a valid Apple Code Signing. More information on how to properly sign your application in order to use the sparkle framework to update it can be found on this link.
For more information please visit the Sparkle Framework Page, the Sparkle Framework Documentation or check the Sparkle Framework Source Code.