Struct tauri_bundler::bundle::MacOsSettings [−][src]
pub struct MacOsSettings { pub frameworks: Option<Vec<String>>, pub minimum_system_version: Option<String>, pub license: Option<String>, pub use_bootstrapper: Option<bool>, pub exception_domain: Option<String>, pub signing_identity: Option<String>, pub entitlements: Option<String>, }
Expand description
The macOS bundle settings.
Fields
frameworks: Option<Vec<String>>
Expand description
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)
minimum_system_version: Option<String>
Expand description
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
.
license: Option<String>
Expand description
The path to the LICENSE file for macOS apps. Currently only used by the dmg bundle.
use_bootstrapper: Option<bool>
Expand description
whether we should use the bootstrap script on macOS .app or not.
this script goal is to allow your app to access environment variables e.g $PATH.
without it, you can’t run some applications installed by the user.
exception_domain: Option<String>
Expand description
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>
Expand description
Code signing identity.
entitlements: Option<String>
Expand description
Path to the entitlements.plist file.
Trait Implementations
impl Clone for MacOsSettings
[src]
impl Clone for MacOsSettings
[src]fn clone(&self) -> MacOsSettings
[src]
fn clone(&self) -> MacOsSettings
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for MacOsSettings
[src]
impl Debug for MacOsSettings
[src]impl Default for MacOsSettings
[src]
impl Default for MacOsSettings
[src]fn default() -> MacOsSettings
[src]
fn default() -> MacOsSettings
[src]Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for MacOsSettings
impl Send for MacOsSettings
impl Sync for MacOsSettings
impl Unpin for MacOsSettings
impl UnwindSafe for MacOsSettings
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more