@tauri-apps/cli 2.3.1 → 2.4.1
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 +35 -0
- package/config.schema.json +50 -6
- package/package.json +13 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## \[2.4.1]
|
|
4
|
+
|
|
5
|
+
### Enhancements
|
|
6
|
+
|
|
7
|
+
- [`f805061d1`](https://www.github.com/tauri-apps/tauri/commit/f805061d1152bc4790dbdb9475a506afcdd1de75) ([#13079](https://www.github.com/tauri-apps/tauri/pull/13079) by [@Pietagorh](https://www.github.com/tauri-apps/tauri/../../Pietagorh)) Add support for passing TOML and JSON5 config files to `--config` arg
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- [`794af778e`](https://www.github.com/tauri-apps/tauri/commit/794af778e4915ffb6a4fe9bae8fba04bc880503d) ([#13117](https://www.github.com/tauri-apps/tauri/pull/13117) by [@Legend-Master](https://www.github.com/tauri-apps/tauri/../../Legend-Master)) Fix setting merge config value to null with `--config` arg no longer works
|
|
12
|
+
|
|
13
|
+
### Dependencies
|
|
14
|
+
|
|
15
|
+
- Upgraded to `tauri-cli@2.4.1`
|
|
16
|
+
|
|
17
|
+
## \[2.4.0]
|
|
18
|
+
|
|
19
|
+
### New Features
|
|
20
|
+
|
|
21
|
+
- [`d91bfa5cb`](https://www.github.com/tauri-apps/tauri/commit/d91bfa5cb921a078758edd45ef3eaff71358d1eb) ([#12970](https://www.github.com/tauri-apps/tauri/pull/12970) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Allow merging multiple configuration values on `tauri dev`, `tauri build`, `tauri bundle`, `tauri android dev`, `tauri android build`, `tauri ios dev` and `tauri ios build`.
|
|
22
|
+
- [`30f5a1553`](https://www.github.com/tauri-apps/tauri/commit/30f5a1553d3c0ce460c9006764200a9210915a44) ([#12366](https://www.github.com/tauri-apps/tauri/pull/12366) by [@FabianLars](https://www.github.com/tauri-apps/tauri/../../FabianLars)) Added `trafficLightPosition` window configuration to set the traffic light buttons position on macOS.
|
|
23
|
+
|
|
24
|
+
### Enhancements
|
|
25
|
+
|
|
26
|
+
- [`f981a5ee8`](https://www.github.com/tauri-apps/tauri/commit/f981a5ee8b292b9ea09329f60cecc7f688dda734) ([#12602](https://www.github.com/tauri-apps/tauri/pull/12602) by [@kxxt](https://www.github.com/tauri-apps/tauri/../../kxxt)) Add basic support for linux riscv64 platform.
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
- [`0c4700e99`](https://www.github.com/tauri-apps/tauri/commit/0c4700e9907f242eabe579eb6149a1d75174185c) ([#12985](https://www.github.com/tauri-apps/tauri/pull/12985) by [@FabianLars](https://www.github.com/tauri-apps/tauri/../../FabianLars)) The cli will now accept `--bundles updater` again. It's still no-op as it has been for all v2 versions. If you want to build updater artifacts, enable `createUpdaterArtifacts` in `tauri.conf.json`.
|
|
31
|
+
- [`b83921226`](https://www.github.com/tauri-apps/tauri/commit/b83921226cb3084992bb5357e7e39a09ea97843e) ([#12977](https://www.github.com/tauri-apps/tauri/pull/12977) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Fix `tauri ios` commands using the wrong working directory with `bun@>1.2`.
|
|
32
|
+
- [`f268b3dbd`](https://www.github.com/tauri-apps/tauri/commit/f268b3dbdf313484c85b4a1f69cd7cec63049f35) ([#12871](https://www.github.com/tauri-apps/tauri/pull/12871) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Ignore parent .gitignore files on the Tauri project path detection.
|
|
33
|
+
|
|
34
|
+
### Dependencies
|
|
35
|
+
|
|
36
|
+
- Upgraded to `tauri-cli@2.4.0`
|
|
37
|
+
|
|
3
38
|
## \[2.3.1]
|
|
4
39
|
|
|
5
40
|
### Dependencies
|
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.
|
|
3
|
+
"$id": "https://schema.tauri.app/config/2.4.1",
|
|
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",
|
|
@@ -69,7 +69,9 @@
|
|
|
69
69
|
},
|
|
70
70
|
"build": {
|
|
71
71
|
"description": "The build configuration.",
|
|
72
|
-
"default": {
|
|
72
|
+
"default": {
|
|
73
|
+
"removeUnusedCommands": false
|
|
74
|
+
},
|
|
73
75
|
"allOf": [
|
|
74
76
|
{
|
|
75
77
|
"$ref": "#/definitions/BuildConfig"
|
|
@@ -227,7 +229,7 @@
|
|
|
227
229
|
"type": "string"
|
|
228
230
|
},
|
|
229
231
|
"create": {
|
|
230
|
-
"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
|
|
232
|
+
"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).",
|
|
231
233
|
"default": true,
|
|
232
234
|
"type": "boolean"
|
|
233
235
|
},
|
|
@@ -424,6 +426,17 @@
|
|
|
424
426
|
}
|
|
425
427
|
]
|
|
426
428
|
},
|
|
429
|
+
"trafficLightPosition": {
|
|
430
|
+
"description": "The position of the window controls on macOS.\n\n Requires titleBarStyle: Overlay and decorations: true.",
|
|
431
|
+
"anyOf": [
|
|
432
|
+
{
|
|
433
|
+
"$ref": "#/definitions/LogicalPosition"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"type": "null"
|
|
437
|
+
}
|
|
438
|
+
]
|
|
439
|
+
},
|
|
427
440
|
"hiddenTitle": {
|
|
428
441
|
"description": "If `true`, sets the window title to be hidden on macOS.",
|
|
429
442
|
"default": false,
|
|
@@ -527,6 +540,11 @@
|
|
|
527
540
|
"type": "null"
|
|
528
541
|
}
|
|
529
542
|
]
|
|
543
|
+
},
|
|
544
|
+
"javascriptDisabled": {
|
|
545
|
+
"description": "Whether we should disable JavaScript code execution on the webview or not.",
|
|
546
|
+
"default": false,
|
|
547
|
+
"type": "boolean"
|
|
530
548
|
}
|
|
531
549
|
},
|
|
532
550
|
"additionalProperties": false
|
|
@@ -595,6 +613,27 @@
|
|
|
595
613
|
}
|
|
596
614
|
]
|
|
597
615
|
},
|
|
616
|
+
"LogicalPosition": {
|
|
617
|
+
"description": "Position coordinates struct.",
|
|
618
|
+
"type": "object",
|
|
619
|
+
"required": [
|
|
620
|
+
"x",
|
|
621
|
+
"y"
|
|
622
|
+
],
|
|
623
|
+
"properties": {
|
|
624
|
+
"x": {
|
|
625
|
+
"description": "X coordinate.",
|
|
626
|
+
"type": "number",
|
|
627
|
+
"format": "double"
|
|
628
|
+
},
|
|
629
|
+
"y": {
|
|
630
|
+
"description": "Y coordinate.",
|
|
631
|
+
"type": "number",
|
|
632
|
+
"format": "double"
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
"additionalProperties": false
|
|
636
|
+
},
|
|
598
637
|
"WindowEffectsConfig": {
|
|
599
638
|
"description": "The window effects configuration object",
|
|
600
639
|
"type": "object",
|
|
@@ -1246,7 +1285,7 @@
|
|
|
1246
1285
|
]
|
|
1247
1286
|
},
|
|
1248
1287
|
"Capability": {
|
|
1249
|
-
"description": "A grouping and boundary mechanism developers can use to isolate access to the IPC layer.\n\n It controls application windows fine grained access to the Tauri core, application, or plugin commands.\n If a window is not matching any capability then it has no access to the IPC layer at all.\n\n This can be done to create groups of windows, based on their required system access, which can reduce\n impact of frontend vulnerabilities in less privileged windows.\n Windows can be added to a capability by exact name (e.g. `main-window`) or glob patterns like `*` or `admin-*`.\n A Window can have none, one, or multiple associated capabilities.\n\n ## Example\n\n ```json\n {\n \"identifier\": \"main-user-files-write\",\n \"description\": \"This capability allows the `main` window on macOS and Windows access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.\",\n \"windows\": [\n \"main\"\n ],\n \"permissions\": [\n \"core:default\",\n \"dialog:open\",\n {\n \"identifier\": \"fs:allow-write-text-file\",\n \"allow\": [{ \"path\": \"$HOME/test.txt\" }]\n },\n ],\n \"platforms\": [\"macOS\",\"windows\"]\n }\n ```",
|
|
1288
|
+
"description": "A grouping and boundary mechanism developers can use to isolate access to the IPC layer.\n\n It controls application windows' and webviews' fine grained access\n to the Tauri core, application, or plugin commands.\n If a webview or its window is not matching any capability then it has no access to the IPC layer at all.\n\n This can be done to create groups of windows, based on their required system access, which can reduce\n impact of frontend vulnerabilities in less privileged windows.\n Windows can be added to a capability by exact name (e.g. `main-window`) or glob patterns like `*` or `admin-*`.\n A Window can have none, one, or multiple associated capabilities.\n\n ## Example\n\n ```json\n {\n \"identifier\": \"main-user-files-write\",\n \"description\": \"This capability allows the `main` window on macOS and Windows access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.\",\n \"windows\": [\n \"main\"\n ],\n \"permissions\": [\n \"core:default\",\n \"dialog:open\",\n {\n \"identifier\": \"fs:allow-write-text-file\",\n \"allow\": [{ \"path\": \"$HOME/test.txt\" }]\n },\n ],\n \"platforms\": [\"macOS\",\"windows\"]\n }\n ```",
|
|
1250
1289
|
"type": "object",
|
|
1251
1290
|
"required": [
|
|
1252
1291
|
"identifier",
|
|
@@ -1279,14 +1318,14 @@
|
|
|
1279
1318
|
"type": "boolean"
|
|
1280
1319
|
},
|
|
1281
1320
|
"windows": {
|
|
1282
|
-
"description": "List of windows that are affected by this capability. Can be a glob pattern.\n\n On multiwebview windows, prefer [`Self::webviews`] for a fine grained access control.\n\n ## Example\n\n `[\"main\"]`",
|
|
1321
|
+
"description": "List of windows that are affected by this capability. Can be a glob pattern.\n\n If a window label matches any of the patterns in this list,\n the capability will be enabled on all the webviews of that window,\n regardless of the value of [`Self::webviews`].\n\n On multiwebview windows, prefer specifying [`Self::webviews`] and omitting [`Self::windows`]\n for a fine grained access control.\n\n ## Example\n\n `[\"main\"]`",
|
|
1283
1322
|
"type": "array",
|
|
1284
1323
|
"items": {
|
|
1285
1324
|
"type": "string"
|
|
1286
1325
|
}
|
|
1287
1326
|
},
|
|
1288
1327
|
"webviews": {
|
|
1289
|
-
"description": "List of webviews that are affected by this capability. Can be a glob pattern.\n\n
|
|
1328
|
+
"description": "List of webviews that are affected by this capability. Can be a glob pattern.\n\n The capability will be enabled on all the webviews\n whose label matches any of the patterns in this list,\n regardless of whether the webview's window label matches a pattern in [`Self::windows`].\n\n ## Example\n\n `[\"sub-webview-one\", \"sub-webview-two\"]`",
|
|
1290
1329
|
"type": "array",
|
|
1291
1330
|
"items": {
|
|
1292
1331
|
"type": "string"
|
|
@@ -1760,6 +1799,11 @@
|
|
|
1760
1799
|
"items": {
|
|
1761
1800
|
"type": "string"
|
|
1762
1801
|
}
|
|
1802
|
+
},
|
|
1803
|
+
"removeUnusedCommands": {
|
|
1804
|
+
"description": "Try to remove unused commands registered from plugins base on the ACL list during `tauri build`,\n the way it works is that tauri-cli will read this and set the environment variables for the build script and macros,\n and they'll try to get all the allowed commands and remove the rest\n\n Note:\n - This won't be accounting for dynamically added ACLs so make sure to check it when using this\n - This feature requires tauri-plugin 2.1 and tauri 2.4",
|
|
1805
|
+
"default": false,
|
|
1806
|
+
"type": "boolean"
|
|
1763
1807
|
}
|
|
1764
1808
|
},
|
|
1765
1809
|
"additionalProperties": false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tauri-apps/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Command line interface for building Tauri apps",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "opencollective",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"aarch64-unknown-linux-musl",
|
|
33
33
|
"armv7-unknown-linux-gnueabihf",
|
|
34
34
|
"x86_64-unknown-linux-musl",
|
|
35
|
+
"riscv64gc-unknown-linux-gnu",
|
|
35
36
|
"i686-pc-windows-msvc",
|
|
36
37
|
"aarch64-pc-windows-msvc"
|
|
37
38
|
]
|
|
@@ -62,15 +63,16 @@
|
|
|
62
63
|
"tauri": "node ./tauri.js"
|
|
63
64
|
},
|
|
64
65
|
"optionalDependencies": {
|
|
65
|
-
"@tauri-apps/cli-win32-x64-msvc": "2.
|
|
66
|
-
"@tauri-apps/cli-darwin-x64": "2.
|
|
67
|
-
"@tauri-apps/cli-linux-x64-gnu": "2.
|
|
68
|
-
"@tauri-apps/cli-darwin-arm64": "2.
|
|
69
|
-
"@tauri-apps/cli-linux-arm64-gnu": "2.
|
|
70
|
-
"@tauri-apps/cli-linux-arm64-musl": "2.
|
|
71
|
-
"@tauri-apps/cli-linux-arm-gnueabihf": "2.
|
|
72
|
-
"@tauri-apps/cli-linux-x64-musl": "2.
|
|
73
|
-
"@tauri-apps/cli-
|
|
74
|
-
"@tauri-apps/cli-win32-
|
|
66
|
+
"@tauri-apps/cli-win32-x64-msvc": "2.4.1",
|
|
67
|
+
"@tauri-apps/cli-darwin-x64": "2.4.1",
|
|
68
|
+
"@tauri-apps/cli-linux-x64-gnu": "2.4.1",
|
|
69
|
+
"@tauri-apps/cli-darwin-arm64": "2.4.1",
|
|
70
|
+
"@tauri-apps/cli-linux-arm64-gnu": "2.4.1",
|
|
71
|
+
"@tauri-apps/cli-linux-arm64-musl": "2.4.1",
|
|
72
|
+
"@tauri-apps/cli-linux-arm-gnueabihf": "2.4.1",
|
|
73
|
+
"@tauri-apps/cli-linux-x64-musl": "2.4.1",
|
|
74
|
+
"@tauri-apps/cli-linux-riscv64-gnu": "2.4.1",
|
|
75
|
+
"@tauri-apps/cli-win32-ia32-msvc": "2.4.1",
|
|
76
|
+
"@tauri-apps/cli-win32-arm64-msvc": "2.4.1"
|
|
75
77
|
}
|
|
76
78
|
}
|