Swiftpack.co - jashephe/Glimmer as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by jashephe.
jashephe/Glimmer v1.0.0
A simple update-checking library for macOS applications distributed via GitHub releases
⭐️ 0
🕓 3 years ago
macOS
.package(url: "https://github.com/jashephe/Glimmer.git", from: "v1.0.0")

Glimmer

Glimmer is a simple Swift library for macOS application update checking for apps distributed via GitHub releases. It is available as a Swift Package.


Usage

The library's functionality can be accessed through GlimmerUpdater, which is initialized with the repository owner and name. Calling getLatestRelease() will yield a Combine Publisher that resolves to a GlimmerRelease, which contains information about the most recent published release. Importantly, GlimmerRelease contains a tag field, which matches the git repository tag that was used to generate the release. Your application can compare this tag to the current version of the application, and determine if and how to alert the user.

Preferences

Your application decides whether or not to allow the end user to enable or disable update checks, and whether or not to allow the user to "skip" a particular update version.

Important Notes

Glimmer does not install application updates. It not meant to replicate the functionality of auto-update libraries such as Sparkle. It merely provides the methods to check if an update is available, and the means to inform the user of how to navigate to and download the latest version. Glimmer does not include built-in methods for notifying the user that an update is available, and it does not maintain any persistent history of the last update check or ignored versions.

GitHub

link
Stars: 0
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics