Struct tauri_utils::config::BundleConfig
source · pub struct BundleConfig {Show 18 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 use_local_tools_dir: bool,
pub appimage: AppImageConfig,
pub deb: DebConfig,
pub rpm: RpmConfig,
pub dmg: DmgConfig,
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: boolWhether Tauri should bundle your application or just output the executable.
targets: BundleTargetThe bundle targets, currently supports [“deb”, “rpm”, “appimage”, “nsis”, “msi”, “app”, “dmg”, “updater”] or “all”.
identifier: StringThe 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.
use_local_tools_dir: boolWhether to use the project’s target directory, for caching build tools (e.g., Wix and NSIS) when building this application. Defaults to false.
If true, tools will be cached in target\.tauri-tools.
If false, tools will be cached in the current user’s platform-specific cache directory.
An example where it can be appropriate to set this to true is when building this application as a Windows System user (e.g., AWS EC2 workloads),
because the Window system’s app data directory is restricted.
appimage: AppImageConfigConfiguration for the AppImage bundle.
deb: DebConfigConfiguration for the Debian bundle.
rpm: RpmConfigConfiguration for the RPM bundle.
dmg: DmgConfigDMG-specific settings.
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§
source§impl Clone for BundleConfig
impl Clone for BundleConfig
source§fn clone(&self) -> BundleConfig
fn clone(&self) -> BundleConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for BundleConfig
impl Debug for BundleConfig
source§impl Default for BundleConfig
impl Default for BundleConfig
source§fn default() -> BundleConfig
fn default() -> BundleConfig
source§impl<'de> Deserialize<'de> for BundleConfig
impl<'de> Deserialize<'de> for BundleConfig
source§fn 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>,
source§impl PartialEq for BundleConfig
impl PartialEq for BundleConfig
source§fn eq(&self, other: &BundleConfig) -> bool
fn eq(&self, other: &BundleConfig) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for BundleConfig
impl Serialize for BundleConfig
impl Eq for BundleConfig
impl StructuralPartialEq for BundleConfig
Auto Trait Implementations§
impl Freeze for BundleConfig
impl RefUnwindSafe for BundleConfig
impl Send for BundleConfig
impl Sync for BundleConfig
impl Unpin for BundleConfig
impl UnwindSafe for BundleConfig
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.