Tools to create and distribute macOS Applications through disk images. This consists of:
- Script to build a disk image from an application, sign, and notarize it.
- Sample background image for use in the disk image's Finder window.
- Template to cusotmize background image using Affinity Designer.
All parameters to the make_disk_image.sh script are provided through environment variables.
EXPANDED_CODE_SIGN_IDENTITY_NAME- The team identity for code signing the disk image. This would need to be a Developer ID identity.APP_BUNDLE– Path and name to the application bundle to package.DISK_IMAGE_FULL_PATH– Full path and file name of the resulting.dmgfile.APPLE_ID_MAIL— The primary e-mail address of the Apple ID member of the team for use in notarization.APPLE_ID_PASSWORD– The app-specific password of the corresponding Apple ID for use in notarizationAPPLE_ID_PROVIDER_SHORT_NAME— (optional) the short name of the iTunes Provider for app store uploads. Only required if the Apple ID has access to more than uploading apps.DISK_IMAGE_BACKGROUND_FILE– (optional) name of.pngimage file that would be the disk image's background shown Finder.
Configure the above environment variables and simply run the script:
./BuildScripts/make_disk_image.sh- Xcode 11.0
- Developer ID Account
- create-dmg
Refer to Notarizing Disk Images for Developer ID Distribution for background information and details on how this script was put together.
BSD 3-Clause License
Copyright (c) 2019, Sasmito Adibowo
https://cutecoder.org
All rights reserved.