Struct tauri_utils::config::BundleConfig

source ·
pub struct BundleConfig {
Show 15 fields pub active: bool, pub targets: BundleTarget, pub identifier: String, pub publisher: Option<String>, pub icon: Vec<String>, pub resources: Option<BundleResources>, pub copyright: Option<String>, pub category: Option<String>, pub short_description: Option<String>, pub long_description: Option<String>, pub appimage: AppImageConfig, pub deb: DebConfig, pub macos: MacConfig, pub external_bin: Option<Vec<String>>, pub windows: WindowsConfig,
}
Expand description

Configuration for tauri-bundler.

See more: https://tauri.app/v1/api/config#bundleconfig

Fields§

§active: bool

Whether Tauri should bundle your application or just output the executable.

§targets: BundleTarget

The bundle targets, currently supports [“deb”, “appimage”, “nsis”, “msi”, “app”, “dmg”, “updater”] or “all”.

§identifier: String

The application identifier in reverse domain name notation (e.g. com.tauri.example). This string must be unique across applications since it is used in system configurations like the bundle ID and path to the webview data directory. This string must contain only alphanumeric characters (A–Z, a–z, and 0–9), hyphens (-), and periods (.).

§publisher: Option<String>

The application’s publisher. Defaults to the second element in the identifier string. Currently maps to the Manufacturer property of the Windows Installer.

§icon: Vec<String>

The app’s icons

§resources: Option<BundleResources>

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.

Should be one of the following: Business, DeveloperTool, Education, Entertainment, Finance, Game, ActionGame, AdventureGame, ArcadeGame, BoardGame, CardGame, CasinoGame, DiceGame, EducationalGame, FamilyGame, KidsGame, MusicGame, PuzzleGame, RacingGame, RolePlayingGame, SimulationGame, SportsGame, StrategyGame, TriviaGame, WordGame, GraphicsAndDesign, HealthcareAndFitness, Lifestyle, Medical, Music, News, Photography, Productivity, Reference, SocialNetworking, Sports, Travel, Utility, Video, Weather.

§short_description: Option<String>

A short description of your application.

§long_description: Option<String>

A longer, multi-line description of the application.

§appimage: AppImageConfig

Configuration for the AppImage bundle.

§deb: DebConfig

Configuration for the Debian bundle.

§macos: MacConfig

Configuration 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: WindowsConfig

Configuration for the Windows bundle.

Trait Implementations§

source§

impl Clone for BundleConfig

source§

fn clone(&self) -> BundleConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BundleConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for BundleConfig

source§

fn default() -> BundleConfig

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for BundleConfig

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for BundleConfig

source§

fn eq(&self, other: &BundleConfig) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for BundleConfig

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for BundleConfig

source§

impl StructuralPartialEq for BundleConfig

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,