pub struct BundleSettings {Show 23 fields
pub identifier: Option<String>,
pub publisher: Option<String>,
pub homepage: Option<String>,
pub icon: Option<Vec<String>>,
pub resources: Option<Vec<String>>,
pub resources_map: Option<HashMap<String, String>>,
pub copyright: Option<String>,
pub license: Option<String>,
pub license_file: Option<PathBuf>,
pub category: Option<AppCategory>,
pub file_associations: Option<Vec<FileAssociation>>,
pub short_description: Option<String>,
pub long_description: Option<String>,
pub bin: Option<HashMap<String, BundleSettings>>,
pub external_bin: Option<Vec<String>>,
pub deep_link_protocols: Option<Vec<DeepLinkProtocol>>,
pub deb: DebianSettings,
pub appimage: AppImageSettings,
pub rpm: RpmSettings,
pub dmg: DmgSettings,
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.
publisher: Option<String>
The app’s publisher. Defaults to the second element in the identifier string.
Currently maps to the Manufacturer property of the Windows Installer and the Maintainer field of debian packages if the Cargo.toml does not have the authors field.
homepage: Option<String>
A url to the home page of your application. If None, will fallback to PackageSettings::homepage.
Supported bundle targets: deb
, rpm
, nsis
and msi
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.
resources_map: Option<HashMap<String, String>>
The app’s resources to bundle. Takes precedence over Self::resources
when specified.
Maps each resource path to its target directory in the bundle resources directory.
Supports glob patterns.
copyright: Option<String>
the app’s copyright.
license: Option<String>
The package’s license identifier to be included in the appropriate bundles. If not set, defaults to the license from the Cargo.toml file.
license_file: Option<PathBuf>
The path to the license file to be included in the appropriate bundles.
category: Option<AppCategory>
the app’s category.
file_associations: Option<Vec<FileAssociation>>
the file associations
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
deep_link_protocols: Option<Vec<DeepLinkProtocol>>
Deep-link protocols.
deb: DebianSettings
Debian-specific settings.
appimage: AppImageSettings
AppImage-specific settings.
rpm: RpmSettings
Rpm-specific settings.
dmg: DmgSettings
DMG-specific settings.
macos: MacOsSettings
MacOS-specific settings.
updater: Option<UpdaterSettings>
Updater configuration.
windows: WindowsSettings
Windows-specific settings.
Trait Implementations§
Source§impl Clone for BundleSettings
impl Clone for BundleSettings
Source§fn clone(&self) -> BundleSettings
fn clone(&self) -> BundleSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BundleSettings
impl Debug for BundleSettings
Source§impl Default for BundleSettings
impl Default for BundleSettings
Source§fn default() -> BundleSettings
fn default() -> BundleSettings
Auto Trait Implementations§
impl Freeze for BundleSettings
impl RefUnwindSafe for BundleSettings
impl Send for BundleSettings
impl Sync for BundleSettings
impl Unpin for BundleSettings
impl UnwindSafe for BundleSettings
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()
.