Platforms to show: All Mac Windows Linux Cross-Platform

SUUpdaterMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Sparkle MBS MacExtras Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The class for Sparkle.
Example
// check for updates with the Sparkle framework included in the application bundle
Var framework As FolderItem = App.ExecutableFile.Parent.Parent.Child("Frameworks").Child("Sparkle.framework")
If Not SUUpdaterMBS.LoadFramework(framework) Then
MessageBox "Failed to load Sparkle."
Return
End If

// Updater is a property of the app: Updater As SUUpdaterMBS
Updater = New SUUpdaterMBS
Updater.feedURL = "https://www.example.com/appcast.xml"
Updater.automaticallyChecksForUpdates = True
Updater.updateCheckInterval = 86400 // once a day

// e.g. in the "Check for Updates..." menu handler
Updater.checkForUpdates

This class is for use with the Sparkle framework and implements the Cocoa classes inside this framework.

Errors

Constant Value Description
SUAppcastError 1002 An error occurred in retrieving update information.
SUAppcastParseError 1000 An error occurred while parsing the update feed.
The appcast must be valid xml.
SUAuthenticationFailure 4001 Unable to grant authorization to perform action because it is explicitly turned off.
SUDowngradeError 4006 The update contains an older version.
SUDownloadError 2001 Download error.
SUFileCopyFailure 4000 File copy failed.
SUInstallationCancelledError 4007 Installation was cancelled.
SUInstallationError 4005 An error occurred while installing the update.
SUMissingInstallerToolError 4003 The installer tool is missing.
SUMissingUpdateError 4002 Couldn't find an appropriate update in the downloaded package.
App name or bundle ID must match to current app.
SUNoUpdateError 1001 You already have the newest version.
SURelaunchError 4004 Failed to relaunch.
SURunningFromDiskImageError 1003 The app runs from disk image and can't update.
SURunningTranslocated 1004 The application got translocated.
SUSignatureError 3001 The signture doesn't match.
SUSystemPowerOffError 5000 The update will not be installed because the user requested for the system to power off.
SUTemporaryDirectoryError 2000 Failed to get temp file.
SUUnarchivingError 3000 Failed to unarchive the update.

This class has no subclasses.

Blog Entries

Release notes

Some examples using this class:

Some related classes:


The items on this page are in the following plugins: MBS MacExtras Plugin.


SummaryMBS   -   SUVersionComparisonMBS


The biggest plugin in space...