mas key contains options for building MAS (Mac Application Store) target. This configuration inherits all macOS options.
Basic Example
Mac App Store Requirements
When building for the Mac App Store, you need to:- Use appropriate entitlements files for MAS
- Sign with a Mac App Store distribution certificate
- Disable hardened runtime (MAS has its own sandboxing)
- Follow Apple’s App Store guidelines
Configuration Options
MAS-Specific Entitlements
The path to entitlements file for signing the app.
build/entitlements.mas.plist will be used if exists (it is a recommended way to set).See this folder in osx-sign’s repository for examples.See Signing and Notarizing macOS Builds for more information.The path to child entitlements which inherit the security settings for signing frameworks and bundles of a distribution.
build/entitlements.mas.inherit.plist will be used if exists (it is a recommended way to set).See this folder in osx-sign’s repository for examples.Paths of any extra binaries that need to be signed.
Inherited Options
The MAS configuration inherits all options from macOS configuration, including:category- Application categoryicon- Application iconidentity- Code signing identity (use Mac App Store certificate)type- Distribution or developmentbundleVersion- CFBundleVersionbundleShortVersion- CFBundleShortVersionStringminimumSystemVersion- Minimum macOS versionprovisioningProfile- Provisioning profile path- And all other macOS options
Some macOS options behave differently for MAS builds:
hardenedRuntimeshould typically befalsefor MASnotarizeis not applicable for MASrequirementsis not applicable for MAS
Example Entitlements
mas.plist
mas.inherit.plist
Testing MAS Builds
You can build a development MAS build for testing using themas-dev target: