Struct tauri_utils::config::BundleConfig
source · [−]pub struct BundleConfig {Show 13 fields
pub active: bool,
pub targets: Option<BundleTarget>,
pub identifier: String,
pub icon: Vec<String>,
pub resources: Option<Vec<String>>,
pub copyright: Option<String>,
pub category: Option<String>,
pub short_description: Option<String>,
pub long_description: Option<String>,
pub deb: DebConfig,
pub macos: MacConfig,
pub external_bin: Option<Vec<String>>,
pub windows: WindowsConfig,
}Expand description
Configuration for tauri-bundler.
Fields
active: boolWhether we should build your app with tauri-bundler or plain cargo build
targets: Option<BundleTarget>The bundle targets, currently supports [“deb”, “app”, “msi”, “appimage”, “dmg”] or “all”
identifier: StringThe app’s identifier
icon: Vec<String>The app’s icons
resources: Option<Vec<String>>App resources to bundle. Each resource is a path to a file or directory. Glob patterns are supported.
copyright: Option<String>A copyright string associated with your application.
category: Option<String>The application kind.
short_description: Option<String>A short description of your application.
long_description: Option<String>A longer, multi-line description of the application.
deb: DebConfigConfiguration for the Debian bundle.
macos: MacConfigConfiguration for the macOS bundles.
external_bin: Option<Vec<String>>A list of—either absolute or relative—paths to binaries to embed with your application.
Note that Tauri will look for system-specific binaries following the pattern “binary-name{-target-triple}{.system-extension}”.
E.g. for the external binary “my-binary”, Tauri looks for:
- “my-binary-x86_64-pc-windows-msvc.exe” for Windows
- “my-binary-x86_64-apple-darwin” for macOS
- “my-binary-x86_64-unknown-linux-gnu” for Linux
so don’t forget to provide binaries for all targeted platforms.
windows: WindowsConfigConfiguration for the Windows bundle.
Trait Implementations
sourceimpl Clone for BundleConfig
impl Clone for BundleConfig
sourcefn clone(&self) -> BundleConfig
fn clone(&self) -> BundleConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BundleConfig
impl Debug for BundleConfig
sourceimpl Default for BundleConfig
impl Default for BundleConfig
sourcefn default() -> BundleConfig
fn default() -> BundleConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BundleConfig
impl<'de> Deserialize<'de> for BundleConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<BundleConfig> for BundleConfig
impl PartialEq<BundleConfig> for BundleConfig
sourcefn eq(&self, other: &BundleConfig) -> bool
fn eq(&self, other: &BundleConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &BundleConfig) -> bool
fn ne(&self, other: &BundleConfig) -> bool
This method tests for !=.
sourceimpl Serialize for BundleConfig
impl Serialize for BundleConfig
impl StructuralPartialEq for BundleConfig
Auto Trait Implementations
impl RefUnwindSafe for BundleConfig
impl Send for BundleConfig
impl Sync for BundleConfig
impl Unpin for BundleConfig
impl UnwindSafe for BundleConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more