@tauri-apps/cli 2.8.1 → 2.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/config.schema.json +3 -3
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
package/config.schema.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://schema.tauri.app/config/2.8.
|
|
3
|
+
"$id": "https://schema.tauri.app/config/2.8.3",
|
|
4
4
|
"title": "Config",
|
|
5
5
|
"description": "The Tauri configuration object.\n It is read from a file where you can define your frontend assets,\n configure the bundler and define a tray icon.\n\n The configuration file is generated by the\n [`tauri init`](https://v2.tauri.app/reference/cli/#init) command that lives in\n your Tauri application source directory (src-tauri).\n\n Once generated, you may modify it at will to customize your Tauri application.\n\n ## File Formats\n\n By default, the configuration is defined as a JSON file named `tauri.conf.json`.\n\n Tauri also supports JSON5 and TOML files via the `config-json5` and `config-toml` Cargo features, respectively.\n The JSON5 file name must be either `tauri.conf.json` or `tauri.conf.json5`.\n The TOML file name is `Tauri.toml`.\n\n ## Platform-Specific Configuration\n\n In addition to the default configuration file, Tauri can\n read a platform-specific configuration from `tauri.linux.conf.json`,\n `tauri.windows.conf.json`, `tauri.macos.conf.json`, `tauri.android.conf.json` and `tauri.ios.conf.json`\n (or `Tauri.linux.toml`, `Tauri.windows.toml`, `Tauri.macos.toml`, `Tauri.android.toml` and `Tauri.ios.toml` if the `Tauri.toml` format is used),\n which gets merged with the main configuration object.\n\n ## Configuration Structure\n\n The configuration is composed of the following objects:\n\n - [`app`](#appconfig): The Tauri configuration\n - [`build`](#buildconfig): The build configuration\n - [`bundle`](#bundleconfig): The bundle configurations\n - [`plugins`](#pluginconfig): The plugins configuration\n\n Example tauri.config.json file:\n\n ```json\n {\n \"productName\": \"tauri-app\",\n \"version\": \"0.1.0\",\n \"build\": {\n \"beforeBuildCommand\": \"\",\n \"beforeDevCommand\": \"\",\n \"devUrl\": \"http://localhost:3000\",\n \"frontendDist\": \"../dist\"\n },\n \"app\": {\n \"security\": {\n \"csp\": null\n },\n \"windows\": [\n {\n \"fullscreen\": false,\n \"height\": 600,\n \"resizable\": true,\n \"title\": \"Tauri App\",\n \"width\": 800\n }\n ]\n },\n \"bundle\": {},\n \"plugins\": {}\n }\n ```",
|
|
6
6
|
"type": "object",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"type": "object",
|
|
165
165
|
"properties": {
|
|
166
166
|
"windows": {
|
|
167
|
-
"description": "The app windows configuration.",
|
|
167
|
+
"description": "The app windows configuration.\n\n ## Example:\n\n To create a window at app startup\n\n ```json\n {\n \"app\": {\n \"windows\": [\n { \"width\": 800, \"height\": 600 }\n ]\n }\n }\n ```\n\n If not specified, the window's label (its identifier) defaults to \"main\",\n you can use this label to get the window through\n `app.get_webview_window` in Rust or `WebviewWindow.getByLabel` in JavaScript\n\n When working with multiple windows, each window will need an unique label\n\n ```json\n {\n \"app\": {\n \"windows\": [\n { \"label\": \"main\", \"width\": 800, \"height\": 600 },\n { \"label\": \"secondary\", \"width\": 800, \"height\": 600 }\n ]\n }\n }\n ```\n\n You can also set `create` to false and use this config through the Rust APIs\n\n ```json\n {\n \"app\": {\n \"windows\": [\n { \"create\": false, \"width\": 800, \"height\": 600 }\n ]\n }\n }\n ```\n\n and use it like this\n\n ```rust\n tauri::Builder::default()\n .setup(|app| {\n tauri::WebviewWindowBuilder::from_config(app.handle(), app.config().app.windows[0])?.build()?;\n Ok(())\n });\n ```",
|
|
168
168
|
"default": [],
|
|
169
169
|
"type": "array",
|
|
170
170
|
"items": {
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
"type": "string"
|
|
231
231
|
},
|
|
232
232
|
"create": {
|
|
233
|
-
"description": "Whether Tauri should create this window at app startup or not.\n\n When this is set to `false` you must manually grab the config object via `app.config().app.windows`\n and create it with [`WebviewWindowBuilder::from_config`](https://docs.rs/tauri/2/tauri/webview/struct.WebviewWindowBuilder.html#method.from_config).",
|
|
233
|
+
"description": "Whether Tauri should create this window at app startup or not.\n\n When this is set to `false` you must manually grab the config object via `app.config().app.windows`\n and create it with [`WebviewWindowBuilder::from_config`](https://docs.rs/tauri/2/tauri/webview/struct.WebviewWindowBuilder.html#method.from_config).\n\n ## Example:\n\n ```rust\n tauri::Builder::default()\n .setup(|app| {\n tauri::WebviewWindowBuilder::from_config(app.handle(), app.config().app.windows[0])?.build()?;\n Ok(())\n });\n ```",
|
|
234
234
|
"default": true,
|
|
235
235
|
"type": "boolean"
|
|
236
236
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tauri-apps/cli",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.2",
|
|
4
4
|
"description": "Command line interface for building Tauri apps",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "opencollective",
|
|
@@ -64,16 +64,16 @@
|
|
|
64
64
|
"tauri": "node ./tauri.js"
|
|
65
65
|
},
|
|
66
66
|
"optionalDependencies": {
|
|
67
|
-
"@tauri-apps/cli-linux-x64-gnu": "2.8.
|
|
68
|
-
"@tauri-apps/cli-win32-x64-msvc": "2.8.
|
|
69
|
-
"@tauri-apps/cli-darwin-x64": "2.8.
|
|
70
|
-
"@tauri-apps/cli-darwin-arm64": "2.8.
|
|
71
|
-
"@tauri-apps/cli-linux-arm64-gnu": "2.8.
|
|
72
|
-
"@tauri-apps/cli-linux-arm64-musl": "2.8.
|
|
73
|
-
"@tauri-apps/cli-linux-arm-gnueabihf": "2.8.
|
|
74
|
-
"@tauri-apps/cli-linux-x64-musl": "2.8.
|
|
75
|
-
"@tauri-apps/cli-linux-riscv64-gnu": "2.8.
|
|
76
|
-
"@tauri-apps/cli-win32-ia32-msvc": "2.8.
|
|
77
|
-
"@tauri-apps/cli-win32-arm64-msvc": "2.8.
|
|
67
|
+
"@tauri-apps/cli-linux-x64-gnu": "2.8.2",
|
|
68
|
+
"@tauri-apps/cli-win32-x64-msvc": "2.8.2",
|
|
69
|
+
"@tauri-apps/cli-darwin-x64": "2.8.2",
|
|
70
|
+
"@tauri-apps/cli-darwin-arm64": "2.8.2",
|
|
71
|
+
"@tauri-apps/cli-linux-arm64-gnu": "2.8.2",
|
|
72
|
+
"@tauri-apps/cli-linux-arm64-musl": "2.8.2",
|
|
73
|
+
"@tauri-apps/cli-linux-arm-gnueabihf": "2.8.2",
|
|
74
|
+
"@tauri-apps/cli-linux-x64-musl": "2.8.2",
|
|
75
|
+
"@tauri-apps/cli-linux-riscv64-gnu": "2.8.2",
|
|
76
|
+
"@tauri-apps/cli-win32-ia32-msvc": "2.8.2",
|
|
77
|
+
"@tauri-apps/cli-win32-arm64-msvc": "2.8.2"
|
|
78
78
|
}
|
|
79
79
|
}
|