@tauri-apps/cli 2.5.0 → 2.6.0
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 +22 -0
- package/config.schema.json +27 -9
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## \[2.6.0]
|
|
4
|
+
|
|
5
|
+
### New Features
|
|
6
|
+
|
|
7
|
+
- [`414619c36`](https://www.github.com/tauri-apps/tauri/commit/414619c36e94e21939534dd72c0438b93da75546) ([#13536](https://www.github.com/tauri-apps/tauri/pull/13536) by [@Tunglies](https://www.github.com/tauri-apps/tauri/../../Tunglies)) Added support for the `bundleName` property in the macOS bundler configuration. This allows specifying the `CFBundleName` value for generated macOS bundles.
|
|
8
|
+
- [`3242e1c94`](https://www.github.com/tauri-apps/tauri/commit/3242e1c946c441b58665ba5d612f3a3f1eafe0b6) ([#13659](https://www.github.com/tauri-apps/tauri/pull/13659) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Allow passing Cargo arguments to mobile dev and build commands.
|
|
9
|
+
- [`d1ce9af62`](https://www.github.com/tauri-apps/tauri/commit/d1ce9af62881e3f7d86a495c9c40df5b7f9d1c04) ([#13660](https://www.github.com/tauri-apps/tauri/pull/13660) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Allow passing `--config` arguments to the `ios init` and `android init` commands to tweak the configuration used to initialize the mobile projects.
|
|
10
|
+
- [`7322f0579`](https://www.github.com/tauri-apps/tauri/commit/7322f057923aaec88960ad5556776774b745762f) ([#13502](https://www.github.com/tauri-apps/tauri/pull/13502) by [@amrbashir](https://www.github.com/tauri-apps/tauri/../../amrbashir)) Allow using `CheckIfAppIsRunning` macro inside NSIS hooks, for example `!insertmacro CheckIfAppIsRunning "another-executable.exe" "Another Executable"`.
|
|
11
|
+
- [`4a880ca69`](https://www.github.com/tauri-apps/tauri/commit/4a880ca697bab6d63a2a51ea94e1988cc8c4ea4a) ([#13658](https://www.github.com/tauri-apps/tauri/pull/13658) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Synchronize Tauri config productName changes with the iOS Xcode project.
|
|
12
|
+
- [`8ee14a864`](https://www.github.com/tauri-apps/tauri/commit/8ee14a86480510c15823586cf28084e615cb7a9c) ([#13618](https://www.github.com/tauri-apps/tauri/pull/13618) by [@Sky-walkerX](https://www.github.com/tauri-apps/tauri/../../Sky-walkerX)) Warn the user that the app id shouldn't end in `.app` because it conflicts with the application bundle extension on macOS
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- [`35aa7e121`](https://www.github.com/tauri-apps/tauri/commit/35aa7e1218f34d0805e280e3ec32529d0cb0d733) ([#13294](https://www.github.com/tauri-apps/tauri/pull/13294) by [@kingsword09](https://www.github.com/tauri-apps/tauri/../../kingsword09)) fix: allow the target directory to be inside frontendDir as long as it is not the Rust target directory inside frontendDir.
|
|
17
|
+
- [`ec6065fa4`](https://www.github.com/tauri-apps/tauri/commit/ec6065fa4a6427266ecfb0c0f62f008574bb7880) ([#13625](https://www.github.com/tauri-apps/tauri/pull/13625) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Fixes Android and iOS dev/build commands not working when the app identifier is being modified by the `--config` option.
|
|
18
|
+
- [`5a5291d66`](https://www.github.com/tauri-apps/tauri/commit/5a5291d66cb8a955c9d4f8e975782646ac0cc6e7) ([#13483](https://www.github.com/tauri-apps/tauri/pull/13483) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Fix simulator build detection on Xcode.
|
|
19
|
+
|
|
20
|
+
### Dependencies
|
|
21
|
+
|
|
22
|
+
- Upgraded to `tauri-cli@2.6.0`
|
|
23
|
+
- [`9c16eefa3`](https://www.github.com/tauri-apps/tauri/commit/9c16eefa319b4697bac1d1019bbb5f93eca63173) ([#13629](https://www.github.com/tauri-apps/tauri/pull/13629) by [@sftse](https://www.github.com/tauri-apps/tauri/../../sftse)) Update html5ever to 0.29 and kuchikiki to version 0.8.8-speedreader.
|
|
24
|
+
|
|
3
25
|
## \[2.5.0]
|
|
4
26
|
|
|
5
27
|
### New Features
|
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.6.0",
|
|
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",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"pattern": "^[^/\\:*?\"<>|]+$"
|
|
25
25
|
},
|
|
26
26
|
"mainBinaryName": {
|
|
27
|
-
"description": "
|
|
27
|
+
"description": "Overrides app's main binary filename.\n\n By default, Tauri uses the output binary from `cargo`, by setting this, we will rename that binary in `tauri-cli`'s\n `tauri build` command, and target `tauri bundle` to it\n\n If possible, change the [`package name`] or set the [`name field`] instead,\n and if that's not enough and you're using nightly, consider using the [`different-binary-name`] feature instead\n\n Note: this config should not include the binary extension (e.g. `.exe`), we'll add that for you\n\n [`package name`]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-name-field\n [`name field`]: https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-name-field\n [`different-binary-name`]: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#different-binary-name",
|
|
28
28
|
"type": [
|
|
29
29
|
"string",
|
|
30
30
|
"null"
|
|
@@ -1346,7 +1346,7 @@
|
|
|
1346
1346
|
]
|
|
1347
1347
|
},
|
|
1348
1348
|
"Capability": {
|
|
1349
|
-
"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
|
|
1349
|
+
"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 programmatic 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 ```",
|
|
1350
1350
|
"type": "object",
|
|
1351
1351
|
"required": [
|
|
1352
1352
|
"identifier",
|
|
@@ -1358,7 +1358,7 @@
|
|
|
1358
1358
|
"type": "string"
|
|
1359
1359
|
},
|
|
1360
1360
|
"description": {
|
|
1361
|
-
"description": "Description of what the capability is intended to allow on associated windows.\n\n It should contain a description of what the grouped permissions should allow.\n\n ## Example\n\n This capability allows the `main` window access to `filesystem` write related\n commands and `dialog` commands to enable
|
|
1361
|
+
"description": "Description of what the capability is intended to allow on associated windows.\n\n It should contain a description of what the grouped permissions should allow.\n\n ## Example\n\n This capability allows the `main` window access to `filesystem` write related\n commands and `dialog` commands to enable programmatic access to files selected by the user.",
|
|
1362
1362
|
"default": "",
|
|
1363
1363
|
"type": "string"
|
|
1364
1364
|
},
|
|
@@ -1678,6 +1678,17 @@
|
|
|
1678
1678
|
}
|
|
1679
1679
|
]
|
|
1680
1680
|
},
|
|
1681
|
+
"Service-Worker-Allowed": {
|
|
1682
|
+
"description": "The HTTP Service-Worker-Allowed response header is used to broaden the path restriction for a\n service worker's default scope.\n\n By default, the scope for a service worker registration is the directory where the service\n worker script is located. For example, if the script `sw.js` is located in `/js/sw.js`,\n it can only control URLs under `/js/` by default. Servers can use the `Service-Worker-Allowed`\n header to allow a service worker to control URLs outside of its own directory.\n\n See <https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Service-Worker-Allowed>",
|
|
1683
|
+
"anyOf": [
|
|
1684
|
+
{
|
|
1685
|
+
"$ref": "#/definitions/HeaderSource"
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
"type": "null"
|
|
1689
|
+
}
|
|
1690
|
+
]
|
|
1691
|
+
},
|
|
1681
1692
|
"Timing-Allow-Origin": {
|
|
1682
1693
|
"description": "The Timing-Allow-Origin response header specifies origins that are allowed to see values\n of attributes retrieved via features of the Resource Timing API, which would otherwise be\n reported as zero due to cross-origin restrictions.\n\n See <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Timing-Allow-Origin>",
|
|
1683
1694
|
"anyOf": [
|
|
@@ -1862,7 +1873,7 @@
|
|
|
1862
1873
|
}
|
|
1863
1874
|
},
|
|
1864
1875
|
"removeUnusedCommands": {
|
|
1865
|
-
"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",
|
|
1876
|
+
"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 when you use features from the `dynamic-acl` (currently enabled by default) feature flag, so make sure to check it when using this\n - This feature requires tauri-plugin 2.1 and tauri 2.4",
|
|
1866
1877
|
"default": false,
|
|
1867
1878
|
"type": "boolean"
|
|
1868
1879
|
}
|
|
@@ -2258,7 +2269,7 @@
|
|
|
2258
2269
|
"description": "Updater type",
|
|
2259
2270
|
"anyOf": [
|
|
2260
2271
|
{
|
|
2261
|
-
"description": "Generates
|
|
2272
|
+
"description": "Generates legacy zipped v1 compatible updaters",
|
|
2262
2273
|
"allOf": [
|
|
2263
2274
|
{
|
|
2264
2275
|
"$ref": "#/definitions/V1Compatible"
|
|
@@ -2272,10 +2283,10 @@
|
|
|
2272
2283
|
]
|
|
2273
2284
|
},
|
|
2274
2285
|
"V1Compatible": {
|
|
2275
|
-
"description": "Generates
|
|
2286
|
+
"description": "Generates legacy zipped v1 compatible updaters",
|
|
2276
2287
|
"oneOf": [
|
|
2277
2288
|
{
|
|
2278
|
-
"description": "Generates
|
|
2289
|
+
"description": "Generates legacy zipped v1 compatible updaters",
|
|
2279
2290
|
"type": "string",
|
|
2280
2291
|
"enum": [
|
|
2281
2292
|
"v1Compatible"
|
|
@@ -3402,6 +3413,13 @@
|
|
|
3402
3413
|
"null"
|
|
3403
3414
|
]
|
|
3404
3415
|
},
|
|
3416
|
+
"bundleName": {
|
|
3417
|
+
"description": "The name of the builder that built the bundle.\n\n Translates to the bundle's CFBundleName property.\n\n If not set, defaults to the package's product name.",
|
|
3418
|
+
"type": [
|
|
3419
|
+
"string",
|
|
3420
|
+
"null"
|
|
3421
|
+
]
|
|
3422
|
+
},
|
|
3405
3423
|
"minimumSystemVersion": {
|
|
3406
3424
|
"description": "A version string indicating the minimum macOS X version that the bundled application supports. Defaults to `10.13`.\n\n Setting it to `null` completely removes the `LSMinimumSystemVersion` field on the bundle's `Info.plist`\n and the `MACOSX_DEPLOYMENT_TARGET` environment variable.\n\n An empty string is considered an invalid value so the default value is used.",
|
|
3407
3425
|
"default": "10.13",
|
|
@@ -3425,7 +3443,7 @@
|
|
|
3425
3443
|
]
|
|
3426
3444
|
},
|
|
3427
3445
|
"hardenedRuntime": {
|
|
3428
|
-
"description": "Whether the codesign should enable [hardened runtime]
|
|
3446
|
+
"description": "Whether the codesign should enable [hardened runtime](https://developer.apple.com/documentation/security/hardened_runtime) (for executables) or not.",
|
|
3429
3447
|
"default": true,
|
|
3430
3448
|
"type": "boolean"
|
|
3431
3449
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tauri-apps/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Command line interface for building Tauri apps",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "opencollective",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@napi-rs/cli": "2.18.4",
|
|
43
|
-
"@types/node": "^22.
|
|
43
|
+
"@types/node": "^22.15.32",
|
|
44
44
|
"cross-env": "7.0.3",
|
|
45
|
-
"vitest": "^3.
|
|
45
|
+
"vitest": "^3.2.4"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">= 10"
|
|
@@ -63,16 +63,16 @@
|
|
|
63
63
|
"tauri": "node ./tauri.js"
|
|
64
64
|
},
|
|
65
65
|
"optionalDependencies": {
|
|
66
|
-
"@tauri-apps/cli-win32-x64-msvc": "2.
|
|
67
|
-
"@tauri-apps/cli-darwin-x64": "2.
|
|
68
|
-
"@tauri-apps/cli-linux-x64-gnu": "2.
|
|
69
|
-
"@tauri-apps/cli-darwin-arm64": "2.
|
|
70
|
-
"@tauri-apps/cli-linux-arm64-gnu": "2.
|
|
71
|
-
"@tauri-apps/cli-linux-arm64-musl": "2.
|
|
72
|
-
"@tauri-apps/cli-linux-arm-gnueabihf": "2.
|
|
73
|
-
"@tauri-apps/cli-linux-x64-musl": "2.
|
|
74
|
-
"@tauri-apps/cli-linux-riscv64-gnu": "2.
|
|
75
|
-
"@tauri-apps/cli-win32-ia32-msvc": "2.
|
|
76
|
-
"@tauri-apps/cli-win32-arm64-msvc": "2.
|
|
66
|
+
"@tauri-apps/cli-win32-x64-msvc": "2.6.0",
|
|
67
|
+
"@tauri-apps/cli-darwin-x64": "2.6.0",
|
|
68
|
+
"@tauri-apps/cli-linux-x64-gnu": "2.6.0",
|
|
69
|
+
"@tauri-apps/cli-darwin-arm64": "2.6.0",
|
|
70
|
+
"@tauri-apps/cli-linux-arm64-gnu": "2.6.0",
|
|
71
|
+
"@tauri-apps/cli-linux-arm64-musl": "2.6.0",
|
|
72
|
+
"@tauri-apps/cli-linux-arm-gnueabihf": "2.6.0",
|
|
73
|
+
"@tauri-apps/cli-linux-x64-musl": "2.6.0",
|
|
74
|
+
"@tauri-apps/cli-linux-riscv64-gnu": "2.6.0",
|
|
75
|
+
"@tauri-apps/cli-win32-ia32-msvc": "2.6.0",
|
|
76
|
+
"@tauri-apps/cli-win32-arm64-msvc": "2.6.0"
|
|
77
77
|
}
|
|
78
78
|
}
|