Skip to content

MacDirect/MacDirect.framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MacDirect.framework

MacDirect.framework is the client-side library for integrating the MacDirect update system into your macOS applications. It handles update checking, downloading, and installation with built-in support for Sandboxed apps.

Features

  • Easy Integration: Simple one-line configuration.
  • Sandbox Support: Uses a dedicated helper tool to safely install updates in sandboxed environments.
  • Built-in UI: Standardized update alerts and progress indicators.
  • Secure: Verifies code signatures and checksums before installation.

Installation

Add this framework to your Xcode project as a Swift Package or by embedding the framework directly.

Usage

Configuration

In your AppDelegate or @main App struct:

import MacDirect

func applicationDidFinishLaunching(_ notification: Notification) {
    MacDirect.configure(feedURL: "https://your-server.com/app-updates.json")
    MacDirect.presentUpdateProfileIfAvailable()
}

Manual Check

MacDirect.checkForUpdatesManually()

Internal Components

  • Update Engine: Core logic for checking, downloading, and patching.
  • MacDirectSecurity: Verifies the integrity of downloaded updates.
  • UI: SwiftUI views for update notifications.
  • UpdateHelper: A helper tool for performing installations, especially for Sandboxed applications.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors