pub struct BundleConfig {
Show 14 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 appimage: AppImageConfig, pub deb: DebConfig, pub macos: MacConfig, pub external_bin: Option<Vec<String>>, pub windows: WindowsConfig,
}
Expand description

Configuration for tauri-bundler.

Fields

active: bool

Whether 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: 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.

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.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.