Simplify your macOS App deployment
Zapp is a powerful CLI tool designed to streamline the deployment process for macOS applications. With Zapp, you can effortlessly create DMG and PKG files, perform code signing, notarize your apps, and modify plist files.
- Create DMG files
- Create PKG files
- Code signing
- Notarization / Stapling
- Retrieve notarization
- Modify plist (version)
- Auto binary dependencies bundling
- Support GitHub Actions
Using Homebrew
brew tap ironpark/zapp
brew install zapp
Using Go
go install github.com/ironpark/zapp@latest
The following is a complete example showing how to use zapp
to sign, package, notarize, and staple MyApp.app
:
zapp sign "MyApp.app"
zapp pkg --out="MyApp.pkg" "MyApp.app"
zapp sign "MyApp.pkg"
zapp notarize --profile="key-chain-profile" "MyApp.pkg" --staple
Zapp can be used to create DMG files, a common format used for distributing macOS apps. It greatly simplifies the DMG creation process by automatically extracting icons from the app bundle, compositing disk icons, and providing an interface for drag-and-drop installation of the app.
zapp dmg --app="path/to/target.app"
zapp dmg --title="My App" --out="MyApp.dmg" --icon="path/to/icon.icns" --app="path/to/target.app"
If the
--version
and--identifier
flags are not set, these values will be retrieved from the Info.plist file of the provided app bundle.
zapp pkg "path/to/target.app"
zapp pkg --out="MyApp.pkg" --version="1.2.3" --identifier="com.example.myapp" "path/to/target.app"
Include End User License Agreement (EULA) files in multiple languages:
zapp pkg "path/to/target.app" --eula=en:eula_en.txt,es:eula_es.txt,fr:eula_fr.txt
If the --identity
flag is not used to select a certificate, Zapp will automatically select an available certificate from the current keychain.
zapp sign "path/to/target.(app,dmg,pkg)"
zapp sign --identity="Developer ID Application" "path/to/target.(app,dmg,pkg)"
When executing the notarize command, if Zapp receives an app bundle path, it automatically compresses the app bundle and attempts to notarize it.
zapp notarize --profile="key-chain-profile" "path/to/target.(app,dmg,pkg)" --staple
zapp notarize --apple-id="your@email.com" --password="pswd" --team-id="XXXXX" "path/to/target.(app,dmg,pkg)" --staple
(TODO: Add advanced usage examples)
Zapp is released under the MIT License.
If you encounter any issues or have questions, please file an issue on the GitHub issue tracker.