Struct tauri_bundler::bundle::BundleSettings
source · [−]pub struct BundleSettings {Show 13 fields
pub identifier: Option<String>,
pub icon: Option<Vec<String>>,
pub resources: Option<Vec<String>>,
pub copyright: Option<String>,
pub category: Option<AppCategory>,
pub short_description: Option<String>,
pub long_description: Option<String>,
pub bin: Option<HashMap<String, BundleSettings>>,
pub external_bin: Option<Vec<String>>,
pub deb: DebianSettings,
pub macos: MacOsSettings,
pub updater: Option<UpdaterSettings>,
pub windows: WindowsSettings,
}
Expand description
The bundle settings of the BuildArtifact we’re bundling.
Fields
identifier: Option<String>
the app’s identifier.
icon: Option<Vec<String>>
the app’s icon list.
resources: Option<Vec<String>>
the app’s resources to bundle.
each item can be a path to a file or a path to a folder.
supports glob patterns.
copyright: Option<String>
the app’s copyright.
category: Option<AppCategory>
the app’s category.
short_description: Option<String>
the app’s short description.
long_description: Option<String>
the app’s long description.
bin: Option<HashMap<String, BundleSettings>>
Configuration map for the apps to bundle.
external_bin: Option<Vec<String>>
External binaries to add to the bundle.
Note that each binary name should have the target platform’s target triple appended,
as well as .exe
for Windows.
For example, if you’re bundling a sidecar called sqlite3
, the bundler expects
a binary named sqlite3-x86_64-unknown-linux-gnu
on linux,
and sqlite3-x86_64-pc-windows-gnu.exe
on windows.
Run tauri build --help
for more info on targets.
If you are building a universal binary for MacOS, the bundler expects
your external binary to also be universal, and named after the target triple,
e.g. sqlite3-universal-apple-darwin
. See
https://developer.apple.com/documentation/apple-silicon/building-a-universal-macos-binary
deb: DebianSettings
Debian-specific settings.
macos: MacOsSettings
MacOS-specific settings.
updater: Option<UpdaterSettings>
Updater configuration.
windows: WindowsSettings
Windows-specific settings.
Trait Implementations
sourceimpl Clone for BundleSettings
impl Clone for BundleSettings
sourcefn clone(&self) -> BundleSettings
fn clone(&self) -> BundleSettings
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 BundleSettings
impl Debug for BundleSettings
sourceimpl Default for BundleSettings
impl Default for BundleSettings
sourcefn default() -> BundleSettings
fn default() -> BundleSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for BundleSettings
impl Send for BundleSettings
impl Sync for BundleSettings
impl Unpin for BundleSettings
impl UnwindSafe for BundleSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian()
.
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian()
.
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian()
.