pub struct MacConfig {
pub frameworks: Option<Vec<String>>,
pub files: HashMap<PathBuf, PathBuf>,
pub bundle_version: Option<String>,
pub bundle_name: Option<String>,
pub minimum_system_version: Option<String>,
pub exception_domain: Option<String>,
pub signing_identity: Option<String>,
pub hardened_runtime: bool,
pub provider_short_name: Option<String>,
pub entitlements: Option<String>,
pub info_plist: Option<PathBuf>,
pub dmg: DmgConfig,
}Expand description
Configuration for the macOS bundles.
Fields§
§frameworks: Option<Vec<String>>A list of strings indicating any macOS X frameworks that need to be bundled with the application.
If a name is used, “.framework” must be omitted and it will look for standard install locations. You may also use a path to a specific framework.
files: HashMap<PathBuf, PathBuf>The files to include in the application relative to the Contents directory.
bundle_version: Option<String>The version of the build that identifies an iteration of the bundle.
Translates to the bundle’s CFBundleVersion property.
bundle_name: Option<String>The name of the builder that built the bundle.
Translates to the bundle’s CFBundleName property.
If not set, defaults to the package’s product name.
minimum_system_version: Option<String>A version string indicating the minimum macOS X version that the bundled application supports. Defaults to 10.13.
Setting it to null completely removes the LSMinimumSystemVersion field on the bundle’s Info.plist
and the MACOSX_DEPLOYMENT_TARGET environment variable.
Ignored in tauri dev.
An empty string is considered an invalid value so the default value is used.
exception_domain: Option<String>Allows your application to communicate with the outside world. It should be a lowercase, without port and protocol domain name.
signing_identity: Option<String>Identity to use for code signing.
hardened_runtime: boolWhether the codesign should enable hardened runtime (for executables) or not.
provider_short_name: Option<String>Provider short name for notarization.
entitlements: Option<String>Path to the entitlements file.
info_plist: Option<PathBuf>Path to a Info.plist file to merge with the default Info.plist.
Note that Tauri also looks for a Info.plist file in the same directory as the Tauri configuration file.
dmg: DmgConfigDMG-specific settings.