pub struct MacOsSettings {
pub frameworks: Option<Vec<String>>,
pub files: HashMap<PathBuf, PathBuf>,
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_path: Option<PathBuf>,
}
Expand description
The macOS bundle settings.
Fields§
§frameworks: Option<Vec<String>>
MacOS frameworks that need to be bundled with the app.
Each string can either be the name of a framework (without the .framework
extension, e.g. "SDL2"
),
in which case we will search for that framework in the standard install locations (~/Library/Frameworks/
, /Library/Frameworks/
, and /Network/Library/Frameworks/
),
or a path to a specific framework bundle (e.g. ./data/frameworks/SDL2.framework
). Note that this setting just makes tauri-bundler copy the specified frameworks into the OS X app bundle
(under Foobar.app/Contents/Frameworks/
); you are still responsible for:
-
arranging for the compiled binary to link against those frameworks (e.g. by emitting lines like
cargo:rustc-link-lib=framework=SDL2
from yourbuild.rs
script) -
embedding the correct rpath in your binary (e.g. by running
install_name_tool -add_rpath "@executable_path/../Frameworks" path/to/binary
after compiling)
files: HashMap<PathBuf, PathBuf>
List of custom files to add to the application bundle. Maps the path in the Contents directory in the app to the path of the file to include (relative to the current working directory).
minimum_system_version: Option<String>
A version string indicating the minimum MacOS version that the bundled app supports (e.g. "10.11"
).
If you are using this config field, you may also want have your build.rs
script emit cargo:rustc-env=MACOSX_DEPLOYMENT_TARGET=10.11
.
exception_domain: Option<String>
The exception domain to use on the macOS .app bundle.
This allows communication to the outside world e.g. a web server you’re shipping.
signing_identity: Option<String>
Code signing identity.
hardened_runtime: bool
Preserve the hardened runtime version flag, see https://developer.apple.com/documentation/security/hardened_runtime
Settings this to false
is useful when using an ad-hoc signature, making it less strict.
provider_short_name: Option<String>
Provider short name for notarization.
entitlements: Option<String>
Path to the entitlements.plist file.
info_plist_path: Option<PathBuf>
Path to the Info.plist file for the bundle.
Trait Implementations§
Source§impl Clone for MacOsSettings
impl Clone for MacOsSettings
Source§fn clone(&self) -> MacOsSettings
fn clone(&self) -> MacOsSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MacOsSettings
impl Debug for MacOsSettings
Source§impl Default for MacOsSettings
impl Default for MacOsSettings
Source§fn default() -> MacOsSettings
fn default() -> MacOsSettings
Auto Trait Implementations§
impl Freeze for MacOsSettings
impl RefUnwindSafe for MacOsSettings
impl Send for MacOsSettings
impl Sync for MacOsSettings
impl Unpin for MacOsSettings
impl UnwindSafe for MacOsSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian()
.