Giter Site home page Giter Site logo

lc-sparkle's Introduction

lc-sparkle

LiveCode Builder wrapper around Sparkle

Setting up Sparkle

Please refer to the Sparkle documentation to familiarize yourself with the various requirements. You are intersted in everything starting with the security section. Here is a direct link:

https://sparkle-project.org/documentation/#3-segue-for-security-concerns

Using Sparkle in your application

Once you have configured your Info.plist file with the SUFeedURL key you can use Sparkle to update your application.

According to the Sparkle documentation, the second time your application is launched Sparkle will ask the user if they want to check for updates. If they do then sparkleAutomaticallyChecksForUpdates() will return true. You can create a preference UI for this setting and call sparkleSetAutomaticallyChecksForUpdates() to update the setting.

If the user chooses to install an update the sparklePreRelaunchForUpdate message will be sent to your app. Perform any cleanup that you need to perform and then call sparkleRelaunch() to relaunch and perform the update.

Confirm that the feel url is set up correctly

put sparkleFeedUrl()

Check for updates from a "Check For Updates" menu item

sparkleCheckForUpdates()

Check for updates silently in the background

This checks for updates in the background but will display UI to the user if an update is found.

sparkleCheckForUpdatesInBackground()

Check for updates silently in background but don't alert user

This approach will only send callbacks. No UI is shown to the user.

sparkleCheckForUpdateInformation()

SUAppcastItem Structure

Some of the callbacks include a parameter that is an array representing an SUAppcastItem object. It is referred to as an pAppcastItemArray. The array has the following keys:

  • title
  • date
  • description
  • release notes url
  • dsa signature
  • minimum system version
  • maximum system version
  • file url
  • version
  • os
  • display version
  • info url
  • content length

Callbacks

  • sparkleFinishedLoadingAppcast pAppcastItemsArray: pAppcastItemsArray is a numerically indexed array of pAppcastItemArray arrays contained in the Appcast.
  • sparkleFoundUpdate pAppcastItemArray
  • sparkleDidNotFindUpdate
  • sparkleWillInstallUpdate pAppcastItemArray
  • sparkleWillRelaunchApplication
  • sparkleWillShowModalAlert
  • sparkleDidShowModalAlert
  • sparkleDownloadCanceledByUser
  • sparkleWillInstallUpdateOnQuit pAppcastItemArray
  • sparkelDidCancelInstallUpdateOnQuit pAppcastItemArray
  • sparkleDidAbortWithError pErrorArray: pErrorArray contains description and failure reason keys. You can display the description key to users.
  • sparklePreRelaunchForUpdate

lc-sparkle's People

Contributors

trevordevore avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.