Create your own macOS application installer

2 weeks ago 1

README RU

Create a one-click installer for your macOS application. Save your users from cognitive load when choosing the right file for their processor type (x86_64 or arm64), ensuring installation simplicity.

Screenshot

https://youtu.be/KyJ4SOSBmaM

  • Support for 2 source options for downloading application files: GitHub Releases and Direct URLs
  • Localization in 14 languages: English, Bulgarian, Chinese (Simplified), French, German, Hindi, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Turkish, Vietnamese
  • The installer skips downloading application files if the app is already installed on the user's device
  • Confirmation prompt when exiting the installer during download or installation

Clone the project repository:

git clone https://github.com/doroved/mac-installer.git cd mac-installer

Navigate to the project settings (Xcode) and make the following changes:

  1. General → Display Name — replace AppName with your application name
  2. Signing & Capabilities → Bundle Identifier — replace com.appname.installer with a unique identifier for your installer

In the AppConfig.swift file:

  1. Specify your application name in appName as it appears in /Applications
  2. Choose the application file download method (downloadType):
    • github — for downloading from GitHub Releases
    • direct — for direct download via URL
  3. Specify URLs for latestReleaseURL, arm64URL, x86_64URL depending on the chosen download method

In Assets.xcassets, replace the icon with your application's icon.

  1. Navigate to Product → Archive to create a project archive
  2. After creating the archive, click the Distribute App button, select Direct Distribution, and click Distribute
  3. Wait for the process to complete and click Export to save the installer as a .app file
Read Entire Article