@tauri-apps/cli 2.8.4 → 2.9.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 CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## \[2.9.0]
4
+
5
+ ### New Features
6
+
7
+ - [`3b4fac201`](https://www.github.com/tauri-apps/tauri/commit/3b4fac2017832d426dd07c5e24e26684eda57f7b) ([#14194](https://www.github.com/tauri-apps/tauri/pull/14194)) Add `tauri.conf.json > bundle > android > autoIncrementVersionCode` config option to automatically increment the Android version code.
8
+ - [`673867aa0`](https://www.github.com/tauri-apps/tauri/commit/673867aa0e1ccd766ee879ffe96aba58c758613c) ([#14094](https://www.github.com/tauri-apps/tauri/pull/14094)) Try to detect ANDROID_HOME and NDK_HOME environment variables from default system locations and install them if needed using the Android Studio command line tools.
9
+ - [`3d6868d09`](https://www.github.com/tauri-apps/tauri/commit/3d6868d09c323d68a152f3c3f8c7256311bd020a) ([#14128](https://www.github.com/tauri-apps/tauri/pull/14128)) Added support to defining the content type of the declared file association on macOS (maps to LSItemContentTypes property).
10
+ - [`3d6868d09`](https://www.github.com/tauri-apps/tauri/commit/3d6868d09c323d68a152f3c3f8c7256311bd020a) ([#14128](https://www.github.com/tauri-apps/tauri/pull/14128)) Added support to defining the metadata for custom types declared in `tauri.conf.json > bundle > fileAssociations > exportedType` via the `UTExportedTypeDeclarations` Info.plist property.
11
+ - [`ed7c9a410`](https://www.github.com/tauri-apps/tauri/commit/ed7c9a4100e08c002212265549d12130d021ad1e) ([#14108](https://www.github.com/tauri-apps/tauri/pull/14108)) Added `bundle > macOS > infoPlist` and `bundle > iOS > infoPlist` configurations to allow defining custom Info.plist extensions.
12
+ - [`75082cc5b`](https://www.github.com/tauri-apps/tauri/commit/75082cc5b340e30e2c4b4cd4bd6a1fe5382164aa) ([#14120](https://www.github.com/tauri-apps/tauri/pull/14120)) Added `ios run` and `android run` commands to run the app in production mode.
13
+ - [`cc8c0b531`](https://www.github.com/tauri-apps/tauri/commit/cc8c0b53171173dbd1d01781a50de1a3ea159031) ([#14031](https://www.github.com/tauri-apps/tauri/pull/14031)) Added support to universal app links on macOS with the `plugins > deep-link > desktop > domains` configuration.
14
+
15
+ ### Enhancements
16
+
17
+ - [`b5aa01870`](https://www.github.com/tauri-apps/tauri/commit/b5aa018702bf45dc98297698f9b7d238705865a6) ([#14268](https://www.github.com/tauri-apps/tauri/pull/14268)) Update cargo-mobile2 to 0.21, enhancing error messages and opening Xcode when multiple apps are installed.
18
+ - [`55453e845`](https://www.github.com/tauri-apps/tauri/commit/55453e8453d927b8197f1ba9f26fd944482938f7) ([#14262](https://www.github.com/tauri-apps/tauri/pull/14262)) Check mismatched versions in `tauri info`
19
+ - [`1a6627ee7`](https://www.github.com/tauri-apps/tauri/commit/1a6627ee7d085a4e66784e2705254714d68c7244) ([#14122](https://www.github.com/tauri-apps/tauri/pull/14122)) Set a default log level filter when running `tauri add log`.
20
+ - [`b06b3bd09`](https://www.github.com/tauri-apps/tauri/commit/b06b3bd091b0fed26cdcfb23cacb0462a7a9cc2d) ([#14126](https://www.github.com/tauri-apps/tauri/pull/14126)) Improve error messages with more context.
21
+ - [`f6622a3e3`](https://www.github.com/tauri-apps/tauri/commit/f6622a3e342f5dd5fb3cf6e0f79fb309a10e9b3d) ([#14129](https://www.github.com/tauri-apps/tauri/pull/14129)) Prompt to install the iOS platform if it isn't installed yet.
22
+ - [`6bbb530fd`](https://www.github.com/tauri-apps/tauri/commit/6bbb530fd5edfc07b180a4f3782b8566872ca3b1) ([#14105](https://www.github.com/tauri-apps/tauri/pull/14105)) Warn if productName is empty when initializing mobile project.
23
+
24
+ ### Bug Fixes
25
+
26
+ - [`19fb6f7cb`](https://www.github.com/tauri-apps/tauri/commit/19fb6f7cb0d702cb2f25f6f2d1e11014d9dada5d) ([#14146](https://www.github.com/tauri-apps/tauri/pull/14146)) Strip Windows-only extensions from the binary path so an Android project initialized on Windows can be used on UNIX systems.
27
+ - [`19fb6f7cb`](https://www.github.com/tauri-apps/tauri/commit/19fb6f7cb0d702cb2f25f6f2d1e11014d9dada5d) ([#14146](https://www.github.com/tauri-apps/tauri/pull/14146)) Enhance Android build script usage on Windows by attempting to run cmd, bat and exe formats.
28
+ - [`28a2f9bc5`](https://www.github.com/tauri-apps/tauri/commit/28a2f9bc55f658eb71ef1a970ff9f791346f7682) ([#14101](https://www.github.com/tauri-apps/tauri/pull/14101)) Fix iOS CLI usage after modifying the package name.
29
+ - [`d2938486e`](https://www.github.com/tauri-apps/tauri/commit/d2938486e9d974debd90c15d7160b8a17bf4d763) ([#14261](https://www.github.com/tauri-apps/tauri/pull/14261)) Replaced the non-standard nerd font character with ` ⱼₛ ` in `tarui info`
30
+ - [`25e920e16`](https://www.github.com/tauri-apps/tauri/commit/25e920e169db900ca4f07c2bb9eb290e9f9f2c7d) ([#14298](https://www.github.com/tauri-apps/tauri/pull/14298)) Wait for dev server to exit before exiting the CLI when the app is closed on `tauri dev --no-watch`.
31
+ - [`b0012424c`](https://www.github.com/tauri-apps/tauri/commit/b0012424c5f432debfa42ba145e2672966d5f6d5) ([#14115](https://www.github.com/tauri-apps/tauri/pull/14115)) Resolve local IP address when `tauri.conf.json > build > devUrl` host is `0.0.0.0`.
32
+ - [`abf7e8850`](https://www.github.com/tauri-apps/tauri/commit/abf7e8850ba41e7173e9e9a3fdd6dfb8f357d72d) ([#14118](https://www.github.com/tauri-apps/tauri/pull/14118)) Fixes mobile project initialization when using `pnpx` or `pnpm dlx`.
33
+
34
+ ### Dependencies
35
+
36
+ - Upgraded to `tauri-cli@2.9.0`
37
+
3
38
  ## \[2.8.4]
4
39
 
5
40
  ### Enhancements
@@ -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.5",
3
+ "$id": "https://schema.tauri.app/config/2.9.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",
@@ -84,6 +84,7 @@
84
84
  "default": {
85
85
  "active": false,
86
86
  "android": {
87
+ "autoIncrementVersionCode": false,
87
88
  "minSdkVersion": 24
88
89
  },
89
90
  "createUpdaterArtifacts": false,
@@ -572,6 +573,36 @@
572
573
  "description": "Allows disabling the input accessory view on iOS.\n\n The accessory view is the view that appears above the keyboard when a text input element is focused.\n It usually displays a view with \"Done\", \"Next\" buttons.",
573
574
  "default": false,
574
575
  "type": "boolean"
576
+ },
577
+ "dataDirectory": {
578
+ "description": "Set a custom path for the webview's data directory (localStorage, cache, etc.) **relative to [`appDataDir()`]/${label}**.\n\n To set absolute paths, use [`WebviewWindowBuilder::data_directory`](https://docs.rs/tauri/2/tauri/webview/struct.WebviewWindowBuilder.html#method.data_directory)\n\n #### Platform-specific:\n\n - **Windows**: WebViews with different values for settings like `additionalBrowserArgs`, `browserExtensionsEnabled` or `scrollBarStyle` must have different data directories.\n - **macOS / iOS**: Unsupported, use `dataStoreIdentifier` instead.\n - **Android**: Unsupported.",
579
+ "type": [
580
+ "string",
581
+ "null"
582
+ ]
583
+ },
584
+ "dataStoreIdentifier": {
585
+ "description": "Initialize the WebView with a custom data store identifier. This can be seen as a replacement for `dataDirectory` which is unavailable in WKWebView.\n See https://developer.apple.com/documentation/webkit/wkwebsitedatastore/init(foridentifier:)?language=objc\n\n The array must contain 16 u8 numbers.\n\n #### Platform-specific:\n\n - **iOS**: Supported since version 17.0+.\n - **macOS**: Supported since version 14.0+.\n - **Windows / Linux / Android**: Unsupported.",
586
+ "type": [
587
+ "array",
588
+ "null"
589
+ ],
590
+ "items": {
591
+ "type": "integer",
592
+ "format": "uint8",
593
+ "minimum": 0.0
594
+ },
595
+ "maxItems": 16,
596
+ "minItems": 16
597
+ },
598
+ "scrollBarStyle": {
599
+ "description": "Specifies the native scrollbar style to use with the webview.\n CSS styles that modify the scrollbar are applied on top of the native appearance configured here.\n\n Defaults to `default`, which is the browser default.\n\n ## Platform-specific\n\n - **Windows**:\n - `fluentOverlay` requires WebView2 Runtime version 125.0.2535.41 or higher,\n and does nothing on older versions.\n - This option must be given the same value for all webviews that target the same data directory.\n - **Linux / Android / iOS / macOS**: Unsupported. Only supports `Default` and performs no operation.",
600
+ "default": "default",
601
+ "allOf": [
602
+ {
603
+ "$ref": "#/definitions/ScrollBarStyle"
604
+ }
605
+ ]
575
606
  }
576
607
  },
577
608
  "additionalProperties": false
@@ -1091,6 +1122,25 @@
1091
1122
  }
1092
1123
  ]
1093
1124
  },
1125
+ "ScrollBarStyle": {
1126
+ "description": "The scrollbar style to use in the webview.\n\n ## Platform-specific\n\n - **Windows**: This option must be given the same value for all webviews that target the same data directory.",
1127
+ "oneOf": [
1128
+ {
1129
+ "description": "The scrollbar style to use in the webview.",
1130
+ "type": "string",
1131
+ "enum": [
1132
+ "default"
1133
+ ]
1134
+ },
1135
+ {
1136
+ "description": "Fluent UI style overlay scrollbars. **Windows Only**\n\n Requires WebView2 Runtime version 125.0.2535.41 or higher, does nothing on older versions,\n see https://learn.microsoft.com/en-us/microsoft-edge/webview2/release-notes/?tabs=dotnetcsharp#10253541",
1137
+ "type": "string",
1138
+ "enum": [
1139
+ "fluentOverlay"
1140
+ ]
1141
+ }
1142
+ ]
1143
+ },
1094
1144
  "SecurityConfig": {
1095
1145
  "description": "Security configuration.\n\n See more: <https://v2.tauri.app/reference/config/#securityconfig>",
1096
1146
  "type": "object",
@@ -2110,7 +2160,7 @@
2110
2160
  ]
2111
2161
  },
2112
2162
  "fileAssociations": {
2113
- "description": "File associations to application.",
2163
+ "description": "File types to associate with the application.",
2114
2164
  "type": [
2115
2165
  "array",
2116
2166
  "null"
@@ -2233,6 +2283,7 @@
2233
2283
  "android": {
2234
2284
  "description": "Android configuration.",
2235
2285
  "default": {
2286
+ "autoIncrementVersionCode": false,
2236
2287
  "minSdkVersion": 24
2237
2288
  },
2238
2289
  "allOf": [
@@ -2384,6 +2435,16 @@
2384
2435
  "$ref": "#/definitions/AssociationExt"
2385
2436
  }
2386
2437
  },
2438
+ "contentTypes": {
2439
+ "description": "Declare support to a file with the given content type. Maps to `LSItemContentTypes` on macOS.\n\n This allows supporting any file format declared by another application that conforms to this type.\n Declaration of new types can be done with [`Self::exported_type`] and linking to certain content types are done via [`ExportedFileAssociation::conforms_to`].",
2440
+ "type": [
2441
+ "array",
2442
+ "null"
2443
+ ],
2444
+ "items": {
2445
+ "type": "string"
2446
+ }
2447
+ },
2387
2448
  "name": {
2388
2449
  "description": "The name. Maps to `CFBundleTypeName` on macOS. Default to `ext[0]`",
2389
2450
  "type": [
@@ -2422,6 +2483,17 @@
2422
2483
  "$ref": "#/definitions/HandlerRank"
2423
2484
  }
2424
2485
  ]
2486
+ },
2487
+ "exportedType": {
2488
+ "description": "The exported type definition. Maps to a `UTExportedTypeDeclarations` entry on macOS.\n\n You should define this if the associated file is a custom file type defined by your application.",
2489
+ "anyOf": [
2490
+ {
2491
+ "$ref": "#/definitions/ExportedFileAssociation"
2492
+ },
2493
+ {
2494
+ "type": "null"
2495
+ }
2496
+ ]
2425
2497
  }
2426
2498
  },
2427
2499
  "additionalProperties": false
@@ -2503,6 +2575,30 @@
2503
2575
  }
2504
2576
  ]
2505
2577
  },
2578
+ "ExportedFileAssociation": {
2579
+ "description": "The exported type definition. Maps to a `UTExportedTypeDeclarations` entry on macOS.",
2580
+ "type": "object",
2581
+ "required": [
2582
+ "identifier"
2583
+ ],
2584
+ "properties": {
2585
+ "identifier": {
2586
+ "description": "The unique identifier for the exported type. Maps to `UTTypeIdentifier`.",
2587
+ "type": "string"
2588
+ },
2589
+ "conformsTo": {
2590
+ "description": "The types that this type conforms to. Maps to `UTTypeConformsTo`.\n\n Examples are `public.data`, `public.image`, `public.json` and `public.database`.",
2591
+ "type": [
2592
+ "array",
2593
+ "null"
2594
+ ],
2595
+ "items": {
2596
+ "type": "string"
2597
+ }
2598
+ }
2599
+ },
2600
+ "additionalProperties": false
2601
+ },
2506
2602
  "WindowsConfig": {
2507
2603
  "description": "Windows bundler configuration.\n\n See more: <https://v2.tauri.app/reference/config/#windowsconfig>",
2508
2604
  "type": "object",
@@ -3523,6 +3619,13 @@
3523
3619
  "null"
3524
3620
  ]
3525
3621
  },
3622
+ "infoPlist": {
3623
+ "description": "Path to a Info.plist file to merge with the default Info.plist.\n\n Note that Tauri also looks for a `Info.plist` file in the same directory as the Tauri configuration file.",
3624
+ "type": [
3625
+ "string",
3626
+ "null"
3627
+ ]
3628
+ },
3526
3629
  "dmg": {
3527
3630
  "description": "DMG-specific settings.",
3528
3631
  "default": {
@@ -3694,6 +3797,13 @@
3694
3797
  "description": "A version string indicating the minimum iOS version that the bundled application supports. Defaults to `13.0`.\n\n Maps to the IPHONEOS_DEPLOYMENT_TARGET value.",
3695
3798
  "default": "14.0",
3696
3799
  "type": "string"
3800
+ },
3801
+ "infoPlist": {
3802
+ "description": "Path to a Info.plist file to merge with the default Info.plist.\n\n Note that Tauri also looks for a `Info.plist` and `Info.ios.plist` file in the same directory as the Tauri configuration file.",
3803
+ "type": [
3804
+ "string",
3805
+ "null"
3806
+ ]
3697
3807
  }
3698
3808
  },
3699
3809
  "additionalProperties": false
@@ -3718,6 +3828,11 @@
3718
3828
  "format": "uint32",
3719
3829
  "maximum": 2100000000.0,
3720
3830
  "minimum": 1.0
3831
+ },
3832
+ "autoIncrementVersionCode": {
3833
+ "description": "Whether to automatically increment the `versionCode` on each build.\n\n - If `true`, the generator will try to read the last `versionCode` from\n `tauri.properties` and increment it by 1 for every build.\n - If `false` or not set, it falls back to `version_code` or semver-derived logic.\n\n Note that to use this feature, you should remove `/tauri.properties` from `src-tauri/gen/android/app/.gitignore` so the current versionCode is committed to the repository.",
3834
+ "default": false,
3835
+ "type": "boolean"
3721
3836
  }
3722
3837
  },
3723
3838
  "additionalProperties": false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tauri-apps/cli",
3
- "version": "2.8.4",
3
+ "version": "2.9.0",
4
4
  "description": "Command line interface for building Tauri apps",
5
5
  "type": "commonjs",
6
6
  "funding": {
@@ -43,7 +43,7 @@
43
43
  "devDependencies": {
44
44
  "@napi-rs/cli": "^3.0.0",
45
45
  "@types/node": "^22.15.32",
46
- "cross-env": "10.0.0",
46
+ "cross-env": "10.1.0",
47
47
  "vitest": "^3.2.4"
48
48
  },
49
49
  "engines": {
@@ -65,16 +65,16 @@
65
65
  "tauri": "node ./tauri.js"
66
66
  },
67
67
  "optionalDependencies": {
68
- "@tauri-apps/cli-linux-x64-gnu": "2.8.4",
69
- "@tauri-apps/cli-win32-x64-msvc": "2.8.4",
70
- "@tauri-apps/cli-darwin-x64": "2.8.4",
71
- "@tauri-apps/cli-darwin-arm64": "2.8.4",
72
- "@tauri-apps/cli-linux-arm64-gnu": "2.8.4",
73
- "@tauri-apps/cli-linux-arm64-musl": "2.8.4",
74
- "@tauri-apps/cli-linux-arm-gnueabihf": "2.8.4",
75
- "@tauri-apps/cli-linux-x64-musl": "2.8.4",
76
- "@tauri-apps/cli-linux-riscv64-gnu": "2.8.4",
77
- "@tauri-apps/cli-win32-ia32-msvc": "2.8.4",
78
- "@tauri-apps/cli-win32-arm64-msvc": "2.8.4"
68
+ "@tauri-apps/cli-linux-x64-gnu": "2.9.0",
69
+ "@tauri-apps/cli-win32-x64-msvc": "2.9.0",
70
+ "@tauri-apps/cli-darwin-x64": "2.9.0",
71
+ "@tauri-apps/cli-darwin-arm64": "2.9.0",
72
+ "@tauri-apps/cli-linux-arm64-gnu": "2.9.0",
73
+ "@tauri-apps/cli-linux-arm64-musl": "2.9.0",
74
+ "@tauri-apps/cli-linux-arm-gnueabihf": "2.9.0",
75
+ "@tauri-apps/cli-linux-x64-musl": "2.9.0",
76
+ "@tauri-apps/cli-linux-riscv64-gnu": "2.9.0",
77
+ "@tauri-apps/cli-win32-ia32-msvc": "2.9.0",
78
+ "@tauri-apps/cli-win32-arm64-msvc": "2.9.0"
79
79
  }
80
80
  }