"description":"The Tauri configuration object. It is read from a file where you can define your frontend assets, configure the bundler and define a system tray.\n\nThe configuration file is generated by the [`tauri init`](https://tauri.app/v1/api/cli#init) command that lives in your Tauri application source directory (src-tauri).\n\nOnce generated, you may modify it at will to customize your Tauri application.\n\n## File Formats\n\nBy default, the configuration is defined as a JSON file named `tauri.conf.json`.\n\nTauri also supports JSON5 and TOML files via the `config-json5` and `config-toml` Cargo features, respectively. The JSON5 file name must be either `tauri.conf.json` or `tauri.conf.json5`. The TOML file name is `Tauri.toml`.\n\n## Platform-Specific Configuration\n\nIn addition to the default configuration file, Tauri can read a platform-specific configuration from `tauri.linux.conf.json`, `tauri.windows.conf.json`, `tauri.macos.conf.json`, `tauri.android.conf.json` and `tauri.ios.conf.json` (or `Tauri.linux.toml`, `Tauri.windows.toml`, `Tauri.macos.toml`, `Tauri.android.toml` and `Tauri.ios.toml` if the `Tauri.toml` format is used), which gets merged with the main configuration object.\n\n## Configuration Structure\n\nThe configuration is composed of the following objects:\n\n- [`package`](#packageconfig): Package settings - [`tauri`](#tauriconfig): The Tauri config - [`build`](#buildconfig): The build configuration - [`plugins`](#pluginconfig): The plugins config\n\n```json title=\"Example tauri.config.json file\" { \"build\": { \"beforeBuildCommand\": \"\", \"beforeDevCommand\": \"\", \"devPath\": \"../dist\", \"distDir\": \"../dist\" }, \"package\": { \"productName\": \"tauri-app\", \"version\": \"0.1.0\" }, \"tauri\": { \"bundle\": {}, \"security\": { \"csp\": null }, \"windows\": [ { \"fullscreen\": false, \"height\": 600, \"resizable\": true, \"title\": \"Tauri App\", \"width\": 800 } ] } } ```",
"description":"App version. It is a semver version number or a path to a `package.json` file containing the `version` field. If removed the version number from `Cargo.toml` is used.",
"description":"The window identifier. It must be alphanumeric.",
"default":"main",
"type":"string"
},
"url":{
"description":"The window webview URL.",
"default":"index.html",
"allOf":[
{
"$ref":"#/definitions/WindowUrl"
}
]
},
"userAgent":{
"description":"The user agent for the webview",
"type":[
"string",
"null"
]
},
"fileDropEnabled":{
"description":"Whether the file drop is enabled or not on the webview. By default it is enabled.\n\nDisabling it is required to use drag and drop on the frontend on Windows.",
"default":true,
"type":"boolean"
},
"center":{
"description":"Whether or not the window starts centered or not.",
"default":false,
"type":"boolean"
},
"x":{
"description":"The horizontal position of the window's top left corner",
"type":[
"number",
"null"
],
"format":"double"
},
"y":{
"description":"The vertical position of the window's top left corner",
"description":"Whether the window is resizable or not. When resizable is set to false, native window's maximize button is automatically disabled.",
"default":true,
"type":"boolean"
},
"maximizable":{
"description":"Whether the window's native maximize button is enabled or not. If resizable is set to false, this setting is ignored.\n\n## Platform-specific\n\n- **macOS:** Disables the \"zoom\" button in the window titlebar, which is also used to enter fullscreen mode. - **Linux / iOS / Android:** Unsupported.",
"default":true,
"type":"boolean"
},
"minimizable":{
"description":"Whether the window's native minimize button is enabled or not.\n\n## Platform-specific\n\n- **Linux / iOS / Android:** Unsupported.",
"default":true,
"type":"boolean"
},
"closable":{
"description":"Whether the window's native close button is enabled or not.\n\n## Platform-specific\n\n- **Linux:** \"GTK+ will do its best to convince the window manager not to show a close button. Depending on the system, this function may not have any effect when called on a window that is already visible\" - **iOS / Android:** Unsupported.",
"description":"Whether the window starts as fullscreen or not.",
"default":false,
"type":"boolean"
},
"focus":{
"description":"Whether the window will be initially focused or not.",
"default":true,
"type":"boolean"
},
"transparent":{
"description":"Whether the window is transparent or not.\n\nNote that on `macOS` this requires the `macos-private-api` feature flag, enabled under `tauri > macOSPrivateApi`. WARNING: Using private APIs on `macOS` prevents your application from being accepted to the `App Store`.",
"default":false,
"type":"boolean"
},
"maximized":{
"description":"Whether the window is maximized or not.",
"default":false,
"type":"boolean"
},
"visible":{
"description":"Whether the window is visible or not.",
"default":true,
"type":"boolean"
},
"decorations":{
"description":"Whether the window should have borders and bars.",
"default":true,
"type":"boolean"
},
"alwaysOnTop":{
"description":"Whether the window should always be on top of other windows.",
"description":"Defines the window [tabbing identifier] for macOS.\n\nWindows with matching tabbing identifiers will be grouped together. If the tabbing identifier is not set, automatic tabbing will be disabled.\n\n[tabbing identifier]: <https://developer.apple.com/documentation/appkit/nswindow/1644704-tabbingidentifier>",
"description":"Defines additional browser arguments on Windows. By default wry passes `--disable-features=msWebOOUI,msPdfOOUI,msSmartScreenProtection` so if you use this method, you also need to disable these components by yourself if you want.",
"description":"Whether or not the window has shadow.\n\n## Platform-specific\n\n- **Windows:** - `false` has no effect on decorated window, shadow are always ON. - `true` will make ndecorated window have a 1px white border, and on Windows 11, it will have a rounded corners. - **Linux:** Unsupported.",
"description":"Window effects.\n\nRequires the window to be transparent.\n\n## Platform-specific:\n\n- **Windows**: If using decorations or shadows, you may want to try this workaround https://github.com/tauri-apps/tao/issues/72#issuecomment-975607891 - **Linux**: Unsupported",
"description":"An URL to open on a Tauri webview window.",
"anyOf":[
{
"description":"An external URL.",
"type":"string",
"format":"uri"
},
{
"description":"The path portion of an app URL. For instance, to load `tauri://localhost/users/john`, you can simply provide `users/john` in this configuration.",
"description":"Makes the title bar transparent, so the window background color is shown instead.\n\nUseful if you don't need to have actual HTML under the title bar. This lets you avoid the caveats of using `TitleBarStyle::Overlay`. Will be more useful when Tauri lets you set a custom window background color.",
"description":"Shows the title bar as a transparent overlay over the window's content.\n\nKeep in mind: - The height of the title bar is different on different OS versions, which can lead to window the controls and title not being where you don't expect. - You need to define a custom drag region to make your window draggable, however due to a limitation you can't drag the window when it's not in focus <https://github.com/tauri-apps/tauri/issues/4316>. - The color of the window title depends on the system theme.",
"description":"Window effect color. Affects [`WindowEffect::Blur`] and [`WindowEffect::Acrylic`] only on Windows 10 v1903+. Doesn't have any effect on Windows 7 or Windows 11.",
"description":"A default material appropriate for the view's effectiveAppearance. **macOS 10.14-**",
"deprecated":true,
"type":"string",
"enum":[
"appearanceBased"
]
},
{
"description":"*macOS 10.14-**",
"deprecated":true,
"type":"string",
"enum":[
"light"
]
},
{
"description":"*macOS 10.14-**",
"deprecated":true,
"type":"string",
"enum":[
"dark"
]
},
{
"description":"*macOS 10.14-**",
"deprecated":true,
"type":"string",
"enum":[
"mediumLight"
]
},
{
"description":"*macOS 10.14-**",
"deprecated":true,
"type":"string",
"enum":[
"ultraDark"
]
},
{
"description":"*macOS 10.10+**",
"type":"string",
"enum":[
"titlebar"
]
},
{
"description":"*macOS 10.10+**",
"type":"string",
"enum":[
"selection"
]
},
{
"description":"*macOS 10.11+**",
"type":"string",
"enum":[
"menu"
]
},
{
"description":"*macOS 10.11+**",
"type":"string",
"enum":[
"popover"
]
},
{
"description":"*macOS 10.11+**",
"type":"string",
"enum":[
"sidebar"
]
},
{
"description":"*macOS 10.14+**",
"type":"string",
"enum":[
"headerView"
]
},
{
"description":"*macOS 10.14+**",
"type":"string",
"enum":[
"sheet"
]
},
{
"description":"*macOS 10.14+**",
"type":"string",
"enum":[
"windowBackground"
]
},
{
"description":"*macOS 10.14+**",
"type":"string",
"enum":[
"hudWindow"
]
},
{
"description":"*macOS 10.14+**",
"type":"string",
"enum":[
"fullScreenUI"
]
},
{
"description":"*macOS 10.14+**",
"type":"string",
"enum":[
"tooltip"
]
},
{
"description":"*macOS 10.14+**",
"type":"string",
"enum":[
"contentBackground"
]
},
{
"description":"*macOS 10.14+**",
"type":"string",
"enum":[
"underWindowBackground"
]
},
{
"description":"*macOS 10.14+**",
"type":"string",
"enum":[
"underPageBackground"
]
},
{
"description":"*Windows 11 Only**",
"type":"string",
"enum":[
"mica"
]
},
{
"description":"**Windows 7/10/11(22H1) Only**\n\n## Notes\n\nThis effect has bad performance when resizing/dragging the window on Windows 11 build 22621.",
"type":"string",
"enum":[
"blur"
]
},
{
"description":"**Windows 10/11 Only**\n\n## Notes\n\nThis effect has bad performance when resizing/dragging the window on Windows 10 v1903+ and Windows 11 build 22000.",
"type":"string",
"enum":[
"acrylic"
]
}
]
},
"WindowEffectState":{
"description":"Window effect state **macOS only**\n\n<https://developer.apple.com/documentation/appkit/nsvisualeffectview/state>",
"oneOf":[
{
"description":"Make window effect state follow the window's active state",
"type":"string",
"enum":[
"followsWindowActiveState"
]
},
{
"description":"Make window effect state always active",
"type":"string",
"enum":[
"active"
]
},
{
"description":"Make window effect state always inactive",
"type":"string",
"enum":[
"inactive"
]
}
]
},
"Color":{
"description":"a tuple struct of RGBA colors. Each value has minimum of 0 and maximum of 255.",
"description":"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 (.).",
"type":"string"
},
"publisher":{
"description":"The application's publisher. Defaults to the second element in the identifier string. Currently maps to the Manufacturer property of the Windows Installer.",
"type":[
"string",
"null"
]
},
"icon":{
"description":"The app's icons",
"default":[],
"type":"array",
"items":{
"type":"string"
}
},
"resources":{
"description":"App resources to bundle. Each resource is a path to a file or directory. Glob patterns are supported.",
"type":[
"array",
"null"
],
"items":{
"type":"string"
}
},
"copyright":{
"description":"A copyright string associated with your application.",
"description":"A short description of your application.",
"type":[
"string",
"null"
]
},
"longDescription":{
"description":"A longer, multi-line description of the application.",
"type":[
"string",
"null"
]
},
"appimage":{
"description":"Configuration for the AppImage bundle.",
"default":{
"bundleMediaFramework":false
},
"allOf":[
{
"$ref":"#/definitions/AppImageConfig"
}
]
},
"deb":{
"description":"Configuration for the Debian bundle.",
"default":{
"files":{}
},
"allOf":[
{
"$ref":"#/definitions/DebConfig"
}
]
},
"macOS":{
"description":"Configuration for the macOS bundles.",
"default":{
"minimumSystemVersion":"10.13"
},
"allOf":[
{
"$ref":"#/definitions/MacConfig"
}
]
},
"externalBin":{
"description":"A list of—either absolute or relative—paths to binaries to embed with your application.\n\nNote that Tauri will look for system-specific binaries following the pattern \"binary-name{-target-triple}{.system-extension}\".\n\nE.g. for the external binary \"my-binary\", Tauri looks for:\n\n- \"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\n\nso don't forget to provide binaries for all targeted platforms.",
"type":[
"array",
"null"
],
"items":{
"type":"string"
}
},
"windows":{
"description":"Configuration for the Windows bundle.",
"description":"Include additional gstreamer dependencies needed for audio and video playback. This increases the bundle size by ~15-35MB depending on your build system.",
"description":"A list of strings indicating any macOS X frameworks that need to be bundled with the application.\n\nIf a name is used, \".framework\" must be omitted and it will look for standard install locations. You may also use a path to a specific framework.",
"type":[
"array",
"null"
],
"items":{
"type":"string"
}
},
"minimumSystemVersion":{
"description":"A version string indicating the minimum macOS X version that the bundled application supports. Defaults to `10.13`.\n\nSetting it to `null` completely removes the `LSMinimumSystemVersion` field on the bundle's `Info.plist` and the `MACOSX_DEPLOYMENT_TARGET` environment variable.\n\nAn empty string is considered an invalid value so the default value is used.",
"default":"10.13",
"type":[
"string",
"null"
]
},
"exceptionDomain":{
"description":"Allows your application to communicate with the outside world. It should be a lowercase, without port and protocol domain name.",
"type":[
"string",
"null"
]
},
"license":{
"description":"The path to the license file to add to the DMG bundle.",
"type":[
"string",
"null"
]
},
"signingIdentity":{
"description":"Identity to use for code signing.",
"type":[
"string",
"null"
]
},
"providerShortName":{
"description":"Provider short name for notarization.",
"description":"Specifies the file digest algorithm to use for creating file signatures. Required for code signing. SHA-256 is recommended.",
"type":[
"string",
"null"
]
},
"certificateThumbprint":{
"description":"Specifies the SHA1 hash of the signing certificate.",
"type":[
"string",
"null"
]
},
"timestampUrl":{
"description":"Server to use during timestamping.",
"type":[
"string",
"null"
]
},
"tsp":{
"description":"Whether to use Time-Stamp Protocol (TSP, a.k.a. RFC 3161) for the timestamp server. Your code signing provider may use a TSP timestamp server, like e.g. SSL.com does. If so, enable TSP by setting to true.",
"default":false,
"type":"boolean"
},
"webviewInstallMode":{
"description":"The installation mode for the Webview2 runtime.",
"default":{
"silent":true,
"type":"downloadBootstrapper"
},
"allOf":[
{
"$ref":"#/definitions/WebviewInstallMode"
}
]
},
"webviewFixedRuntimePath":{
"description":"Path to the webview fixed runtime to use. Overwrites [`Self::webview_install_mode`] if set.\n\nWill be removed in v2, prefer the [`Self::webview_install_mode`] option.\n\nThe fixed version can be downloaded [on the official website](https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section). The `.cab` file must be extracted to a folder and this folder path must be defined on this field.",
"type":[
"string",
"null"
]
},
"allowDowngrades":{
"description":"Validates a second app installation, blocking the user from installing an older version if set to `false`.\n\nFor instance, if `1.2.1` is installed, the user won't be able to install app version `1.2.0` or `1.1.5`.\n\nThe default value of this flag is `true`.",
"default":true,
"type":"boolean"
},
"wix":{
"description":"Configuration for the MSI generated with WiX.",
"description":"Install modes for the Webview2 runtime. Note that for the updater bundle [`Self::DownloadBootstrapper`] is used.\n\nFor more information see <https://tauri.app/v1/guides/building/windows>.",
"oneOf":[
{
"description":"Do not install the Webview2 as part of the Windows Installer.",
"description":"Download the bootstrapper and run it. Requires an internet connection. Results in a smaller installer size, but is not recommended on Windows 7.",
"description":"Embed the bootstrapper and run it. Requires an internet connection. Increases the installer size by around 1.8MB, but offers better support on Windows 7.",
"description":"Instructs the installer to run the installer in silent mode. Defaults to `true`.",
"default":true,
"type":"boolean"
}
},
"additionalProperties":false
},
{
"description":"Embed a fixed webview2 version and use it at runtime. Increases the installer size by around 180MB.",
"type":"object",
"required":[
"path",
"type"
],
"properties":{
"type":{
"type":"string",
"enum":[
"fixedRuntime"
]
},
"path":{
"description":"The path to the fixed runtime to use.\n\nThe fixed version can be downloaded [on the official website](https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section). The `.cab` file must be extracted to a folder and this folder path must be defined on this field.",
"description":"The installer languages to build. See <https://docs.microsoft.com/en-us/windows/win32/msi/localizing-the-error-and-actiontext-tables>.",
"default":"en-US",
"allOf":[
{
"$ref":"#/definitions/WixLanguage"
}
]
},
"template":{
"description":"A custom .wxs template to use.",
"type":[
"string",
"null"
]
},
"fragmentPaths":{
"description":"A list of paths to .wxs files with WiX fragments to use.",
"default":[],
"type":"array",
"items":{
"type":"string"
}
},
"componentGroupRefs":{
"description":"The ComponentGroup element ids you want to reference from the fragments.",
"default":[],
"type":"array",
"items":{
"type":"string"
}
},
"componentRefs":{
"description":"The Component element ids you want to reference from the fragments.",
"default":[],
"type":"array",
"items":{
"type":"string"
}
},
"featureGroupRefs":{
"description":"The FeatureGroup element ids you want to reference from the fragments.",
"default":[],
"type":"array",
"items":{
"type":"string"
}
},
"featureRefs":{
"description":"The Feature element ids you want to reference from the fragments.",
"default":[],
"type":"array",
"items":{
"type":"string"
}
},
"mergeRefs":{
"description":"The Merge element ids you want to reference from the fragments.",
"default":[],
"type":"array",
"items":{
"type":"string"
}
},
"skipWebviewInstall":{
"description":"Disables the Webview2 runtime installation after app install.\n\nWill be removed in v2, prefer the [`WindowsConfig::webview_install_mode`] option.",
"default":false,
"type":"boolean"
},
"license":{
"description":"The path to the license file to render on the installer.\n\nMust be an RTF file, so if a different extension is provided, we convert it to the RTF format.",
"type":[
"string",
"null"
]
},
"enableElevatedUpdateTask":{
"description":"Create an elevated update task within Windows Task Scheduler.",
"default":false,
"type":"boolean"
},
"bannerPath":{
"description":"Path to a bitmap file to use as the installation user interface banner. This bitmap will appear at the top of all but the first page of the installer.\n\nThe required dimensions are 493px × 58px.",
"type":[
"string",
"null"
]
},
"dialogImagePath":{
"description":"Path to a bitmap file to use on the installation user interface dialogs. It is used on the welcome and completion dialogs. The required dimensions are 493px × 312px.",
"type":[
"string",
"null"
]
}
},
"additionalProperties":false
},
"WixLanguage":{
"description":"The languages to build using WiX.",
"anyOf":[
{
"description":"A single language to build, without configuration.",
"type":"string"
},
{
"description":"A list of languages to build, without configuration.",
"type":"array",
"items":{
"type":"string"
}
},
{
"description":"A map of languages and its configuration.",
"description":"The path to a locale (`.wxl`) file. See <https://wixtoolset.org/documentation/manual/v3/howtos/ui_and_localization/build_a_localized_version.html>.",
"description":"A list of installer languages. By default the OS language is used. If the OS language is not in the list of languages, the first language will be used. To allow the user to select the language, set `display_language_selector` to `true`.\n\nSee <https://github.com/kichik/nsis/tree/9465c08046f00ccb6eda985abbdbf52c275c6c4d/Contrib/Language%20files> for the complete list of languages.",
"description":"A key-value pair where the key is the language and the value is the path to a custom `.nsh` file that holds the translated text for tauri's custom messages.\n\nSee <https://github.com/tauri-apps/tauri/blob/dev/tooling/bundler/src/bundle/windows/templates/nsis-languages/English.nsh> for an example `.nsh` file.\n\n**Note**: the key must be a valid NSIS language and it must be added to [`NsisConfig`] languages array,",
"description":"Whether to display a language selector dialog before the installer and uninstaller windows are rendered or not. By default the OS language is selected, with a fallback to the first language in the `languages` array.",
"description":"Default mode for the installer.\n\nInstall the app by default in a directory that doesn't require Administrator access.\n\nInstaller metadata will be saved under the `HKCU` registry path.",
"type":"string",
"enum":[
"currentUser"
]
},
{
"description":"Install the app by default in the `Program Files` folder directory requires Administrator access for the installation.\n\nInstaller metadata will be saved under the `HKLM` registry path.",
"type":"string",
"enum":[
"perMachine"
]
},
{
"description":"Combines both modes and allows the user to choose at install time whether to install for the current user or per machine. Note that this mode will require Administrator access even if the user wants to install it for the current user only.\n\nInstaller metadata will be saved under the `HKLM` or `HKCU` registry path based on the user's choice.",
"description":"General configuration for the iOS target.",
"type":"object",
"properties":{
"developmentTeam":{
"description":"The development team. This value is required for iOS development because code signing is enforced. The `TAURI_APPLE_DEVELOPMENT_TEAM` environment variable can be set to overwrite it.",
"description":"General configuration for the iOS target.",
"type":"object",
"properties":{
"minSdkVersion":{
"description":"The minimum API level required for the application to run. The Android system will prevent the user from installing the application if the system's API level is lower than the value specified.",
"description":"The Content Security Policy that will be injected on all HTML files on the built application. If [`dev_csp`](#SecurityConfig.devCsp) is not specified, this value is also injected on dev.\n\nThis is a really important part of the configuration since it helps you ensure your WebView is secured. See <https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP>.",
"description":"The Content Security Policy that will be injected on all HTML files on development.\n\nThis is a really important part of the configuration since it helps you ensure your WebView is secured. See <https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP>.",
"description":"Disables the Tauri-injected CSP sources.\n\nAt compile time, Tauri parses all the frontend assets and changes the Content-Security-Policy to only allow loading of your own scripts and styles by injecting nonce and hash sources. This stricts your CSP, which may introduce issues when using along with other flexing sources.\n\nThis configuration option allows both a boolean and a list of strings as value. A boolean instructs Tauri to disable the injection for all CSP injections, and a list of strings indicates the CSP directives that Tauri cannot inject.\n\n**WARNING:** Only disable this if you know what you are doing and have properly configured the CSP. Your application might be vulnerable to XSS attacks without this Tauri protection.",
"description":"Allow external domains to send command to Tauri.\n\nBy default, external domains do not have access to `window.__TAURI__`, which means they cannot communicate with the commands defined in Rust. This prevents attacks where an externally loaded malicious or compromised sites could start executing commands on the user's device.\n\nThis configuration allows a set of external domains to have access to the Tauri commands. When you configure a domain to be allowed to access the IPC, all subpaths are allowed. Subdomains are not allowed.\n\n**WARNING:** Only use this option if you either have internal checks against malicious external sites or you can trust the allowed external sites. You application might be vulnerable to dangerous Tauri command related attacks otherwise.",
"description":"Protocol scope definition. It is a list of glob patterns that restrict the API access from the webview.\n\nEach pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
"anyOf":[
{
"description":"A list of paths that are allowed by this scope.",
"description":"Whether or not paths that contain components that start with a `.` will require that `.` appears literally in the pattern; `*`, `?`, `**`, or `[...]` will not match. This is useful because such files are conventionally considered hidden on Unix systems and it might be desirable to skip them when listing files.\n\nDefaults to `false` on Unix systems and `true` on Windows",
"description":"Path to the default icon to use on the system tray.",
"type":"string"
},
"iconAsTemplate":{
"description":"A Boolean value that determines whether the image represents a [template](https://developer.apple.com/documentation/appkit/nsimage/1520017-template?language=objc) image on macOS.",
"default":false,
"type":"boolean"
},
"menuOnLeftClick":{
"description":"A Boolean value that determines whether the menu should appear when the tray icon receives a left click on macOS.",
"description":"The binary used to build and run the application.",
"type":[
"string",
"null"
]
},
"devPath":{
"description":"The path to the application assets or URL to load in development.\n\nThis is usually an URL to a dev server, which serves your application assets with live reloading. Most modern JavaScript bundlers provides a way to start a dev server by default.\n\nSee [vite](https://vitejs.dev/guide/), [Webpack DevServer](https://webpack.js.org/configuration/dev-server/) and [sirv](https://github.com/lukeed/sirv) for examples on how to set up a dev server.",
"default":"http://localhost:8080/",
"allOf":[
{
"$ref":"#/definitions/AppUrl"
}
]
},
"distDir":{
"description":"The path to the application assets or URL to load in production.\n\nWhen a path relative to the configuration file is provided, it is read recursively and all files are embedded in the application binary. Tauri then looks for an `index.html` file unless you provide a custom window URL.\n\nYou can also provide a list of paths to be embedded, which allows granular control over what files are added to the binary. In this case, all files are added to the root and you must reference it that way in your HTML files.\n\nWhen an URL is provided, the application won't have bundled assets and the application will load that URL by default.",
"default":"../dist",
"allOf":[
{
"$ref":"#/definitions/AppUrl"
}
]
},
"beforeDevCommand":{
"description":"A shell command to run before `tauri dev` kicks in.\n\nThe TAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_VERSION, TAURI_PLATFORM_TYPE and TAURI_DEBUG environment variables are set if you perform conditional compilation.",
"anyOf":[
{
"$ref":"#/definitions/BeforeDevCommand"
},
{
"type":"null"
}
]
},
"beforeBuildCommand":{
"description":"A shell command to run before `tauri build` kicks in.\n\nThe TAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_VERSION, TAURI_PLATFORM_TYPE and TAURI_DEBUG environment variables are set if you perform conditional compilation.",
"anyOf":[
{
"$ref":"#/definitions/HookCommand"
},
{
"type":"null"
}
]
},
"beforeBundleCommand":{
"description":"A shell command to run before the bundling phase in `tauri build` kicks in.\n\nThe TAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_VERSION, TAURI_PLATFORM_TYPE and TAURI_DEBUG environment variables are set if you perform conditional compilation.",
"anyOf":[
{
"$ref":"#/definitions/HookCommand"
},
{
"type":"null"
}
]
},
"features":{
"description":"Features passed to `cargo` commands.",
"type":[
"array",
"null"
],
"items":{
"type":"string"
}
},
"withGlobalTauri":{
"description":"Whether we should inject the Tauri API on `window.__TAURI__` or not.",
"default":false,
"type":"boolean"
}
},
"additionalProperties":false
},
"AppUrl":{
"description":"Defines the URL or assets to embed in the application.",
"anyOf":[
{
"description":"The app's external URL, or the path to the directory containing the app assets.",
"allOf":[
{
"$ref":"#/definitions/WindowUrl"
}
]
},
{
"description":"An array of files to embed on the app.",
"type":"array",
"items":{
"type":"string"
}
}
]
},
"BeforeDevCommand":{
"description":"Describes the shell command to run before `tauri dev`.",
"anyOf":[
{
"description":"Run the given script with the default options.",
"type":"string"
},
{
"description":"Run the given script with custom options.",
"type":"object",
"required":[
"script"
],
"properties":{
"script":{
"description":"The script to execute.",
"type":"string"
},
"cwd":{
"description":"The current working directory.",
"type":[
"string",
"null"
]
},
"wait":{
"description":"Whether `tauri dev` should wait for the command to finish or not. Defaults to `false`.",
"default":false,
"type":"boolean"
}
}
}
]
},
"HookCommand":{
"description":"Describes a shell command to be executed when a CLI hook is triggered.",
"anyOf":[
{
"description":"Run the given script with the default options.",
"type":"string"
},
{
"description":"Run the given script with custom options.",
"description":"The plugin configs holds a HashMap mapping a plugin name to its configuration object.\n\nSee more: https://tauri.app/v1/api/config#pluginconfig",