@tauri-apps/cli 2.0.0-beta.2 → 2.0.0-beta.20

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,229 @@
1
1
  # Changelog
2
2
 
3
+ ## \[2.0.0-beta.20]
4
+
5
+ ### Dependencies
6
+
7
+ - Upgraded to `tauri-cli@2.0.0-beta.20`
8
+
9
+ ## \[2.0.0-beta.19]
10
+
11
+ ### New Features
12
+
13
+ - [`8a1ae2dea`](https://www.github.com/tauri-apps/tauri/commit/8a1ae2deaf3086e531ada25b1627f900e2e421fb)([#9843](https://www.github.com/tauri-apps/tauri/pull/9843)) Added an option to use a Xcode project for the iOS plugin instead of a plain SwiftPM project.
14
+ - [`9e4b2253f`](https://www.github.com/tauri-apps/tauri/commit/9e4b2253f6ddaccd0f5c88734287bd5c84d4936a)([#9734](https://www.github.com/tauri-apps/tauri/pull/9734)) Add `tauri bundle` subcommand which runs the bundle phase only, best paired with `tauri build --no-bundle`
15
+
16
+ ### Enhancements
17
+
18
+ - [`8b032c3cf`](https://www.github.com/tauri-apps/tauri/commit/8b032c3cf638e64e50df9d9cf8bc789c7e285987)([#9896](https://www.github.com/tauri-apps/tauri/pull/9896)) Add a blank LaunchScreen.storyboard to the iOS project init template to pass the App Store validation.
19
+ - [`9970d88be`](https://www.github.com/tauri-apps/tauri/commit/9970d88becee1560a4b2a7ffc1fe65991a42a8c9)([#9892](https://www.github.com/tauri-apps/tauri/pull/9892)) Update to latest gradle.
20
+
21
+ ### What's Changed
22
+
23
+ - [`80aa50498`](https://www.github.com/tauri-apps/tauri/commit/80aa504987dd9cfa59aa5848c4d7960e1d58d0e6)([#9870](https://www.github.com/tauri-apps/tauri/pull/9870)) Updated Android target SDK to 34.
24
+
25
+ ### Dependencies
26
+
27
+ - Upgraded to `tauri-cli@2.0.0-beta.19`
28
+
29
+ ### Breaking Changes
30
+
31
+ - [`265c23886`](https://www.github.com/tauri-apps/tauri/commit/265c23886ee5efbcc6d7188ff5c84cb32fa82aea)([#9375](https://www.github.com/tauri-apps/tauri/pull/9375)) Avoid renaming main binary to product name and perserve the name generated by cargo.
32
+ - [`1df5cdeb0`](https://www.github.com/tauri-apps/tauri/commit/1df5cdeb06f5464e0eec4055e21b7b7bc8739eed)([#9858](https://www.github.com/tauri-apps/tauri/pull/9858)) Use `tauri.conf.json > identifier` to set the `PackageName` in Android and `BundleId` in iOS.
33
+
34
+ ## \[2.0.0-beta.18]
35
+
36
+ ### Bug Fixes
37
+
38
+ - [`beda18bce`](https://www.github.com/tauri-apps/tauri/commit/beda18bce95fd6e10543b2d8f1eca5fb7ca0655b)([#9855](https://www.github.com/tauri-apps/tauri/pull/9855)) Fixed an issue that caused `tauri add` to fail for multiple rust-only and platform-specific plugins.
39
+ - [`4a33bc6a6`](https://www.github.com/tauri-apps/tauri/commit/4a33bc6a62d2ed9371191c8a7f78ff3f33930455)([#9553](https://www.github.com/tauri-apps/tauri/pull/9553)) Fixes `pnpm` detection when initializing and running a mobile project.
40
+
41
+ ### Dependencies
42
+
43
+ - Upgraded to `tauri-cli@2.0.0-beta.18`
44
+
45
+ ## \[2.0.0-beta.17]
46
+
47
+ ### Dependencies
48
+
49
+ - Upgraded to `tauri-cli@2.0.0-beta.17`
50
+
51
+ ## \[2.0.0-beta.16]
52
+
53
+ ### Bug Fixes
54
+
55
+ - [`97ec422f2`](https://www.github.com/tauri-apps/tauri/commit/97ec422f22d069b9570931834241c7e47bc68cc3)([#9638](https://www.github.com/tauri-apps/tauri/pull/9638)) Exit `tauri icon` with non-zero code when it fails.
56
+
57
+ ### Dependencies
58
+
59
+ - Upgraded to `tauri-cli@2.0.0-beta.16`
60
+
61
+ ## \[2.0.0-beta.15]
62
+
63
+ ### Dependencies
64
+
65
+ - Upgraded to `tauri-cli@2.0.0-beta.15`
66
+
67
+ ## \[2.0.0-beta.14]
68
+
69
+ ### Enhancements
70
+
71
+ - [`8a63ceb4f`](https://www.github.com/tauri-apps/tauri/commit/8a63ceb4f31c422311b0f7dff173a9c8c0e1a604)([#9473](https://www.github.com/tauri-apps/tauri/pull/9473)) Ignore `.DS_Store` by default for `tauri dev` hot reloads.
72
+
73
+ ### Bug Fixes
74
+
75
+ - [`e64b8f1dc`](https://www.github.com/tauri-apps/tauri/commit/e64b8f1dcedad3222f46755bf6f30392a7ec2f90)([#9479](https://www.github.com/tauri-apps/tauri/pull/9479)) Upgrade `heck` to v0.5 to better support Chinese and Japanese product name, because Chinese do not have word separation.
76
+ - [`aaa332c6e`](https://www.github.com/tauri-apps/tauri/commit/aaa332c6e78c956debd11efda021a0406621a01d)([#9540](https://www.github.com/tauri-apps/tauri/pull/9540)) Fix `tauri migrate` trying to migrate to a non-existing plugin.
77
+ - [`e64b8f1dc`](https://www.github.com/tauri-apps/tauri/commit/e64b8f1dcedad3222f46755bf6f30392a7ec2f90)([#9479](https://www.github.com/tauri-apps/tauri/pull/9479)) Fixed an issue causing the `build.runner` and `build.features` configs to not take effect.
78
+
79
+ ### Dependencies
80
+
81
+ - Upgraded to `tauri-cli@2.0.0-beta.14`
82
+
83
+ ## \[2.0.0-beta.13]
84
+
85
+ ### Bug Fixes
86
+
87
+ - [`73c1c2d33`](https://www.github.com/tauri-apps/tauri/commit/73c1c2d33872651c32c761c838714b684980c668)([#9457](https://www.github.com/tauri-apps/tauri/pull/9457)) Gracefully handle Non-UTF8 files when using `tauri migrate`
88
+ - [`9331435a5`](https://www.github.com/tauri-apps/tauri/commit/9331435a50cc3769720bd2671da8510699d28671)([#9412](https://www.github.com/tauri-apps/tauri/pull/9412)) Fix `tauri info` crashing when Node.js is not installed.
89
+
90
+ ### What's Changed
91
+
92
+ - [`8f4b1050c`](https://www.github.com/tauri-apps/tauri/commit/8f4b1050c4de0e9194680408ff3a6902b67045f8)([#9459](https://www.github.com/tauri-apps/tauri/pull/9459)) Show full expected path of `frontendDist` when if can't be found.
93
+
94
+ ### Dependencies
95
+
96
+ - Upgraded to `tauri-cli@2.0.0-beta.13`
97
+
98
+ ## \[2.0.0-beta.12]
99
+
100
+ ### New Features
101
+
102
+ - [`93e0e1392`](https://www.github.com/tauri-apps/tauri/commit/93e0e1392ec341fcadf696c03e78f0ca1e73c941) Support specifying a version for `tauri add` subcommand, for example: `tauri add window-state@2.0.0-beta.2`
103
+
104
+ ### Dependencies
105
+
106
+ - Upgraded to `tauri-cli@2.0.0-beta.12`
107
+
108
+ ## \[2.0.0-beta.11]
109
+
110
+ ### Enhancements
111
+
112
+ - [`ac76a22f3`](https://www.github.com/tauri-apps/tauri/commit/ac76a22f383028d9bacdedebeb41d3fca5ec9dac)([#9183](https://www.github.com/tauri-apps/tauri/pull/9183)) Allow empty responses for `devUrl`, `beforeDevCommand` and `beforeBuildCommands` questions in `tauri init`.
113
+ - [`b525ddadf`](https://www.github.com/tauri-apps/tauri/commit/b525ddadf7e7588c3e195cf0f821c9862c545d06)([#9237](https://www.github.com/tauri-apps/tauri/pull/9237)) `openssl` is no longer a required dependency on macOS.
114
+
115
+ ### Dependencies
116
+
117
+ - Upgraded to `tauri-cli@2.0.0-beta.11`
118
+
119
+ ## \[2.0.0-beta.10]
120
+
121
+ ### New Features
122
+
123
+ - [`7213b9e47`](https://www.github.com/tauri-apps/tauri/commit/7213b9e47242bef814aa7257e0bf84631bf5fe7e)([#9124](https://www.github.com/tauri-apps/tauri/pull/9124)) Add default permission for a plugin to capabilities when using `tauri add <plugin>`.
124
+
125
+ ### Dependencies
126
+
127
+ - Upgraded to `tauri-cli@2.0.0-beta.10`
128
+
129
+ ## \[2.0.0-beta.9]
130
+
131
+ ### Bug Fixes
132
+
133
+ - [`c3ea3a2b7`](https://www.github.com/tauri-apps/tauri/commit/c3ea3a2b7d2fe3085f05b63dd1feb962beb4b7b3)([#9126](https://www.github.com/tauri-apps/tauri/pull/9126)) Fix bundling when `plugins > updater > windows > installerArgs` are set in `tauri.conf.json`
134
+
135
+ ### Dependencies
136
+
137
+ - Upgraded to `tauri-cli@2.0.0-beta.9`
138
+
139
+ ## \[2.0.0-beta.8]
140
+
141
+ ### Enhancements
142
+
143
+ - [`3e472d0af`](https://www.github.com/tauri-apps/tauri/commit/3e472d0afcd67545dd6d9f18d304580a3b2759a8)([#9115](https://www.github.com/tauri-apps/tauri/pull/9115)) Changed the permission and capability platforms to be optional.
144
+
145
+ ### Dependencies
146
+
147
+ - Upgraded to `tauri-cli@2.0.0-beta.8`
148
+
149
+ ## \[2.0.0-beta.7]
150
+
151
+ ### Enhancements
152
+
153
+ - [`c68218b36`](https://www.github.com/tauri-apps/tauri/commit/c68218b362c417b62e56c7a2b5b32c13fe035a83)([#8990](https://www.github.com/tauri-apps/tauri/pull/8990)) Add `--no-bundle` flag for `tauri build` command to skip bundling. Previously `none` was used to skip bundling, it will now be treated as invalid format and a warning will be emitted instead.
154
+
155
+ ### Dependencies
156
+
157
+ - Upgraded to `tauri-cli@2.0.0-beta.7`
158
+
159
+ ## \[2.0.0-beta.6]
160
+
161
+ ### Bug Fixes
162
+
163
+ - [`f5f3ed5f`](https://www.github.com/tauri-apps/tauri/commit/f5f3ed5f6faa0b51e83244acc15e9006299a03ba)([#9009](https://www.github.com/tauri-apps/tauri/pull/9009)) Fixes Android and iOS project initialization when the Tauri CLI is on a different disk partition.
164
+ - [`d7d03c71`](https://www.github.com/tauri-apps/tauri/commit/d7d03c7197212f3a5bebe08c929417d60927eb89)([#9017](https://www.github.com/tauri-apps/tauri/pull/9017)) Fixes dev watcher on mobile dev.
165
+ - [`b658ded6`](https://www.github.com/tauri-apps/tauri/commit/b658ded614cfc169228cb22ad5bfc64478dfe161)([#9015](https://www.github.com/tauri-apps/tauri/pull/9015)) Fixes truncation of existing BuildTask.kt when running `tauri android init`.
166
+
167
+ ### What's Changed
168
+
169
+ - [`3657ad82`](https://www.github.com/tauri-apps/tauri/commit/3657ad82f88ce528551d032d521c52eed3f396b4)([#9008](https://www.github.com/tauri-apps/tauri/pull/9008)) Updates to new ACL manifest path.
170
+
171
+ ### Dependencies
172
+
173
+ - Upgraded to `tauri-cli@2.0.0-beta.6`
174
+
175
+ ## \[2.0.0-beta.5]
176
+
177
+ ### New Features
178
+
179
+ - [`06d63d67`](https://www.github.com/tauri-apps/tauri/commit/06d63d67a061459dd533ddcae755922427a6dfc5)([#8827](https://www.github.com/tauri-apps/tauri/pull/8827)) Add new subcommands for managing permissions and cababilities:
180
+
181
+ - `tauri permission new`
182
+ - `tauri permission add`
183
+ - `tauri permission rm`
184
+ - `tauri permission ls`
185
+ - `tauri capability new`
186
+
187
+ ### Breaking Changes
188
+
189
+ - [`b9e6a018`](https://www.github.com/tauri-apps/tauri/commit/b9e6a01879d9233040f3d3fab11c59e70563da7e)([#8937](https://www.github.com/tauri-apps/tauri/pull/8937)) The `custom-protocol` Cargo feature is no longer required on your application and is now ignored. To check if running on production, use `#[cfg(not(dev))]` instead of `#[cfg(feature = "custom-protocol")]`.
190
+
191
+ ### Enhancements
192
+
193
+ - [`9be314f0`](https://www.github.com/tauri-apps/tauri/commit/9be314f07a4ca5d14433d41919492f3e91b5536a)([#8951](https://www.github.com/tauri-apps/tauri/pull/8951)) Add plugins to `Cargo.toml` when using `tauri migrate`
194
+
195
+ ### Bug Fixes
196
+
197
+ - [`cbd9755e`](https://www.github.com/tauri-apps/tauri/commit/cbd9755e0926a7e47e59deb50f4bb93d621791a5)([#8977](https://www.github.com/tauri-apps/tauri/pull/8977)) Fixes process logs not showing on `ios dev`.
198
+
199
+ ### Dependencies
200
+
201
+ - Upgraded to `tauri-cli@2.0.0-beta.5`
202
+
203
+ ## \[2.0.0-beta.4]
204
+
205
+ ### Bug Fixes
206
+
207
+ - [`e538ba58`](https://www.github.com/tauri-apps/tauri/commit/e538ba586c5b8b50955586c8ef2704adb5d7cc43)([#8949](https://www.github.com/tauri-apps/tauri/pull/8949)) Fixes android and iOS process spawning not working on Node.js.
208
+
209
+ ### Dependencies
210
+
211
+ - Upgraded to `tauri-cli@2.0.0-beta.4`
212
+
213
+ ### Breaking Changes
214
+
215
+ - [`a76fb118`](https://www.github.com/tauri-apps/tauri/commit/a76fb118ce2de22e1bdb4216bf0ac01dfc3e5799)([#8950](https://www.github.com/tauri-apps/tauri/pull/8950)) Changed the capability format to allow configuring both `remote: { urls: Vec<String> }` and `local: bool (default: true)` instead of choosing one on the `context` field.
216
+
217
+ ## \[2.0.0-beta.3]
218
+
219
+ ### Enhancements
220
+
221
+ - [`a029b9f7`](https://www.github.com/tauri-apps/tauri/commit/a029b9f77e432533a403c292940fa3efba68692c)([#8910](https://www.github.com/tauri-apps/tauri/pull/8910)) Setting up code signing is no longer required on iOS when using the simulator.
222
+
223
+ ### Dependencies
224
+
225
+ - Upgraded to `tauri-cli@2.0.0-beta.3`
226
+
3
227
  ## \[2.0.0-beta.2]
4
228
 
5
229
  ### Enhancements
@@ -384,6 +608,16 @@
384
608
  - First mobile alpha release!
385
609
  - [fa3a1098](https://www.github.com/tauri-apps/tauri/commit/fa3a10988a03aed1b66fb17d893b1a9adb90f7cd) feat(ci): prepare 2.0.0-alpha.0 ([#5786](https://www.github.com/tauri-apps/tauri/pull/5786)) on 2022-12-08
386
610
 
611
+ ## \[1.5.11]
612
+
613
+ ### Bug Fixes
614
+
615
+ - [`b15948b11`](https://www.github.com/tauri-apps/tauri/commit/b15948b11c0e362eea7ef57a4606f15f7dbd886b)([#8903](https://www.github.com/tauri-apps/tauri/pull/8903)) Fix `.taurignore` failing to ignore in some cases.
616
+
617
+ ### Dependencies
618
+
619
+ - Upgraded to `tauri-cli@1.5.11`
620
+
387
621
  ## \[1.5.10]
388
622
 
389
623
  ### Bug Fixes
package/Cargo.toml CHANGED
@@ -8,10 +8,10 @@ crate-type = ["cdylib"]
8
8
 
9
9
  [dependencies]
10
10
  # Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
11
- napi = { version = "2.14", default-features = false, features = ["napi4"] }
12
- napi-derive = "2.14"
11
+ napi = { version = "2.16", default-features = false, features = ["napi4"] }
12
+ napi-derive = "2.16"
13
13
  tauri-cli = { path = "..", default-features = false }
14
- log = "0.4.20"
14
+ log = "0.4.21"
15
15
 
16
16
  [build-dependencies]
17
17
  napi-build = "2.1"
package/build.rs CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2023 Tauri Programme within The Commons Conservancy
1
+ // Copyright 2019-2024 Tauri Programme within The Commons Conservancy
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2023 Tauri Programme within The Commons Conservancy
1
+ // Copyright 2019-2024 Tauri Programme within The Commons Conservancy
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2023 Tauri Programme within The Commons Conservancy
1
+ // Copyright 2019-2024 Tauri Programme within The Commons Conservancy
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/jest.config.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2023 Tauri Programme within The Commons Conservancy
1
+ // Copyright 2019-2024 Tauri Programme within The Commons Conservancy
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/main.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2023 Tauri Programme within The Commons Conservancy
1
+ // Copyright 2019-2024 Tauri Programme within The Commons Conservancy
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/main.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2023 Tauri Programme within The Commons Conservancy
1
+ // Copyright 2019-2024 Tauri Programme within The Commons Conservancy
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tauri-apps/cli",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.0-beta.20",
4
4
  "description": "Command line interface for building Tauri apps",
5
5
  "funding": {
6
6
  "type": "opencollective",
@@ -68,15 +68,15 @@
68
68
  "format:check": "prettier --check ./package.json ./tauri.js"
69
69
  },
70
70
  "optionalDependencies": {
71
- "@tauri-apps/cli-win32-x64-msvc": "2.0.0-beta.2",
72
- "@tauri-apps/cli-darwin-x64": "2.0.0-beta.2",
73
- "@tauri-apps/cli-linux-x64-gnu": "2.0.0-beta.2",
74
- "@tauri-apps/cli-darwin-arm64": "2.0.0-beta.2",
75
- "@tauri-apps/cli-linux-arm64-gnu": "2.0.0-beta.2",
76
- "@tauri-apps/cli-linux-arm64-musl": "2.0.0-beta.2",
77
- "@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-beta.2",
78
- "@tauri-apps/cli-linux-x64-musl": "2.0.0-beta.2",
79
- "@tauri-apps/cli-win32-ia32-msvc": "2.0.0-beta.2",
80
- "@tauri-apps/cli-win32-arm64-msvc": "2.0.0-beta.2"
71
+ "@tauri-apps/cli-win32-x64-msvc": "2.0.0-beta.20",
72
+ "@tauri-apps/cli-darwin-x64": "2.0.0-beta.20",
73
+ "@tauri-apps/cli-linux-x64-gnu": "2.0.0-beta.20",
74
+ "@tauri-apps/cli-darwin-arm64": "2.0.0-beta.20",
75
+ "@tauri-apps/cli-linux-arm64-gnu": "2.0.0-beta.20",
76
+ "@tauri-apps/cli-linux-arm64-musl": "2.0.0-beta.20",
77
+ "@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-beta.20",
78
+ "@tauri-apps/cli-linux-x64-musl": "2.0.0-beta.20",
79
+ "@tauri-apps/cli-win32-ia32-msvc": "2.0.0-beta.20",
80
+ "@tauri-apps/cli-win32-arm64-msvc": "2.0.0-beta.20"
81
81
  }
82
82
  }
package/schema.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "pattern": "^[^/\\:*?\"<>|]+$"
21
21
  },
22
22
  "version": {
23
- "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.",
23
+ "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.\n\nBy default version 1.0 is used on Android.",
24
24
  "type": [
25
25
  "string",
26
26
  "null"
@@ -112,6 +112,7 @@
112
112
  "certificateThumbprint": null,
113
113
  "digestAlgorithm": null,
114
114
  "nsis": null,
115
+ "signCommand": null,
115
116
  "timestampUrl": null,
116
117
  "tsp": false,
117
118
  "webviewFixedRuntimePath": null,
@@ -221,8 +222,8 @@
221
222
  "null"
222
223
  ]
223
224
  },
224
- "fileDropEnabled": {
225
- "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.",
225
+ "dragDropEnabled": {
226
+ "description": "Whether the drag and drop is enabled or not on the webview. By default it is enabled.\n\nDisabling it is required to use HTML5 drag and drop on the frontend on Windows.",
226
227
  "default": true,
227
228
  "type": "boolean"
228
229
  },
@@ -450,6 +451,11 @@
450
451
  "null"
451
452
  ],
452
453
  "format": "uri"
454
+ },
455
+ "zoomHotkeysEnabled": {
456
+ "description": "Whether page zooming by hotkeys is enabled\n\n## Platform-specific:\n\n- **Windows**: Controls WebView2's [`IsZoomControlEnabled`](https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2settings?view=webview2-winrt-1.0.2420.47#iszoomcontrolenabled) setting. - **MacOS / Linux**: Injects a polyfill that zooms in and out with `ctrl/command` + `-/=`, 20% in each step, ranging from 20% to 1000%. Requires `webview:allow-set-webview-zoom` permission\n\n- **Android / iOS**: Unsupported.",
457
+ "default": false,
458
+ "type": "boolean"
453
459
  }
454
460
  },
455
461
  "additionalProperties": false
@@ -1068,12 +1074,11 @@
1068
1074
  ]
1069
1075
  },
1070
1076
  "Capability": {
1071
- "description": "a grouping and boundary mechanism developers can use to separate windows or plugins functionality from each other at runtime.\n\nIf a window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create trust groups and reduce impact of vulnerabilities in certain plugins or windows. Windows can be added to a capability by exact name or glob patterns like *, admin-* or main-window.",
1077
+ "description": "A grouping and boundary mechanism developers can use to separate windows or plugins functionality from each other at runtime.\n\nIf a window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create trust groups and reduce impact of vulnerabilities in certain plugins or windows. Windows can be added to a capability by exact name or glob patterns like *, admin-* or main-window.",
1072
1078
  "type": "object",
1073
1079
  "required": [
1074
1080
  "identifier",
1075
- "permissions",
1076
- "windows"
1081
+ "permissions"
1077
1082
  ],
1078
1083
  "properties": {
1079
1084
  "identifier": {
@@ -1085,15 +1090,22 @@
1085
1090
  "default": "",
1086
1091
  "type": "string"
1087
1092
  },
1088
- "context": {
1089
- "description": "Execution context of the capability.\n\nAt runtime, Tauri filters the IPC command together with the context to determine whether it is allowed or not and its scope.",
1090
- "default": "local",
1091
- "allOf": [
1093
+ "remote": {
1094
+ "description": "Configure remote URLs that can use the capability permissions.",
1095
+ "anyOf": [
1092
1096
  {
1093
- "$ref": "#/definitions/CapabilityContext"
1097
+ "$ref": "#/definitions/CapabilityRemote"
1098
+ },
1099
+ {
1100
+ "type": "null"
1094
1101
  }
1095
1102
  ]
1096
1103
  },
1104
+ "local": {
1105
+ "description": "Whether this capability is enabled for local app URLs or not. Defaults to `true`.",
1106
+ "default": true,
1107
+ "type": "boolean"
1108
+ },
1097
1109
  "windows": {
1098
1110
  "description": "List of windows that uses this capability. Can be a glob pattern.\n\nOn multiwebview windows, prefer [`Self::webviews`] for a fine grained access control.",
1099
1111
  "type": "array",
@@ -1116,57 +1128,32 @@
1116
1128
  }
1117
1129
  },
1118
1130
  "platforms": {
1119
- "description": "Target platforms this capability applies. By default all platforms applies.",
1120
- "default": [
1121
- "linux",
1122
- "macOS",
1123
- "windows",
1124
- "android",
1125
- "iOS"
1131
+ "description": "Target platforms this capability applies. By default all platforms are affected by this capability.",
1132
+ "type": [
1133
+ "array",
1134
+ "null"
1126
1135
  ],
1127
- "type": "array",
1128
1136
  "items": {
1129
1137
  "$ref": "#/definitions/Target"
1130
1138
  }
1131
1139
  }
1132
1140
  }
1133
1141
  },
1134
- "CapabilityContext": {
1135
- "description": "Context of the capability.",
1136
- "oneOf": [
1137
- {
1138
- "description": "Capability refers to local URL usage.",
1139
- "type": "string",
1140
- "enum": [
1141
- "local"
1142
- ]
1143
- },
1144
- {
1145
- "description": "Capability refers to remote usage.",
1146
- "type": "object",
1147
- "required": [
1148
- "remote"
1149
- ],
1150
- "properties": {
1151
- "remote": {
1152
- "type": "object",
1153
- "required": [
1154
- "urls"
1155
- ],
1156
- "properties": {
1157
- "urls": {
1158
- "description": "Remote domains this capability refers to. Can use glob patterns.",
1159
- "type": "array",
1160
- "items": {
1161
- "type": "string"
1162
- }
1163
- }
1164
- }
1165
- }
1166
- },
1167
- "additionalProperties": false
1142
+ "CapabilityRemote": {
1143
+ "description": "Configuration for remote URLs that are associated with the capability.",
1144
+ "type": "object",
1145
+ "required": [
1146
+ "urls"
1147
+ ],
1148
+ "properties": {
1149
+ "urls": {
1150
+ "description": "Remote domains this capability refers to using the [URLPattern standard](https://urlpattern.spec.whatwg.org/).\n\n# Examples\n\n- \"https://*.mydomain.dev\": allows subdomains of mydomain.dev - \"https://mydomain.dev/api/*\": allows any subpath of mydomain.dev/api",
1151
+ "type": "array",
1152
+ "items": {
1153
+ "type": "string"
1154
+ }
1168
1155
  }
1169
- ]
1156
+ }
1170
1157
  },
1171
1158
  "PermissionEntry": {
1172
1159
  "description": "An entry for a permission value in a [`Capability`] can be either a raw permission [`Identifier`] or an object that references a permission and extends its scope.",
@@ -1633,6 +1620,7 @@
1633
1620
  "certificateThumbprint": null,
1634
1621
  "digestAlgorithm": null,
1635
1622
  "nsis": null,
1623
+ "signCommand": null,
1636
1624
  "timestampUrl": null,
1637
1625
  "tsp": false,
1638
1626
  "webviewFixedRuntimePath": null,
@@ -1991,6 +1979,13 @@
1991
1979
  "type": "null"
1992
1980
  }
1993
1981
  ]
1982
+ },
1983
+ "signCommand": {
1984
+ "description": "Specify a custom command to sign the binaries. This command needs to have a `%1` in it which is just a placeholder for the binary path, which we will detect and replace before calling the command.\n\nExample: ```text sign-cli --arg1 --arg2 %1 ```\n\nBy Default we use `signtool.exe` which can be found only on Windows so if you are on another platform and want to cross-compile and sign you will need to use another tool like `osslsigncode`.",
1985
+ "type": [
1986
+ "string",
1987
+ "null"
1988
+ ]
1994
1989
  }
1995
1990
  },
1996
1991
  "additionalProperties": false
@@ -2168,11 +2163,6 @@
2168
2163
  "type": "string"
2169
2164
  }
2170
2165
  },
2171
- "skipWebviewInstall": {
2172
- "description": "Disables the Webview2 runtime installation after app install.\n\nWill be removed in v2, prefer the [`WindowsConfig::webview_install_mode`] option.",
2173
- "default": false,
2174
- "type": "boolean"
2175
- },
2176
2166
  "enableElevatedUpdateTask": {
2177
2167
  "description": "Create an elevated update task within Windows Task Scheduler.",
2178
2168
  "default": false,
@@ -2308,6 +2298,13 @@
2308
2298
  "type": "null"
2309
2299
  }
2310
2300
  ]
2301
+ },
2302
+ "installerHooks": {
2303
+ "description": "A path to a `.nsh` file that contains special NSIS macros to be hooked into the main installer.nsi script.\n\nSupported hooks are: - `NSIS_HOOK_PREINSTALL`: This hook runs before copying files, setting registry key values and creating shortcuts. - `NSIS_HOOK_POSTINSTALL`: This hook runs after the installer has finished copying all files, setting the registry keys and created shortcuts. - `NSIS_HOOK_PREUNINSTALL`: This hook runs before removing any files, registry keys and shortcuts. - `NSIS_HOOK_POSTUNINSTALL`: This hook runs after files, registry keys and shortcuts have been removed.\n\n### Example\n\n```nsh !define NSIS_HOOK_PREINSTALL \"NSIS_HOOK_PREINSTALL_\" !macro NSIS_HOOK_PREINSTALL_ MessageBox MB_OK \"PreInstall\" !macroend\n\n!define NSIS_HOOK_POSTINSTALL \"NSIS_HOOK_POSTINSTALL_\" !macro NSIS_HOOK_POSTINSTALL_ MessageBox MB_OK \"PostInstall\" !macroend\n\n!define NSIS_HOOK_PREUNINSTALL \"NSIS_HOOK_PREUNINSTALL_\" !macro NSIS_HOOK_PREUNINSTALL_ MessageBox MB_OK \"PreUnInstall\" !macroend\n\n!define NSIS_HOOK_POSTUNINSTALL \"NSIS_HOOK_POSTUNINSTALL_\" !macro NSIS_HOOK_POSTUNINSTALL_ MessageBox MB_OK \"PostUninstall\" !macroend\n\n```",
2304
+ "type": [
2305
+ "string",
2306
+ "null"
2307
+ ]
2311
2308
  }
2312
2309
  },
2313
2310
  "additionalProperties": false
@@ -2441,6 +2438,36 @@
2441
2438
  "type": "string"
2442
2439
  }
2443
2440
  },
2441
+ "provides": {
2442
+ "description": "The list of dependencies the package provides.",
2443
+ "type": [
2444
+ "array",
2445
+ "null"
2446
+ ],
2447
+ "items": {
2448
+ "type": "string"
2449
+ }
2450
+ },
2451
+ "conflicts": {
2452
+ "description": "The list of package conflicts.",
2453
+ "type": [
2454
+ "array",
2455
+ "null"
2456
+ ],
2457
+ "items": {
2458
+ "type": "string"
2459
+ }
2460
+ },
2461
+ "replaces": {
2462
+ "description": "The list of package replaces.",
2463
+ "type": [
2464
+ "array",
2465
+ "null"
2466
+ ],
2467
+ "items": {
2468
+ "type": "string"
2469
+ }
2470
+ },
2444
2471
  "files": {
2445
2472
  "description": "The files to include on the package.",
2446
2473
  "default": {},
@@ -2449,6 +2476,27 @@
2449
2476
  "type": "string"
2450
2477
  }
2451
2478
  },
2479
+ "section": {
2480
+ "description": "Define the section in Debian Control file. See : https://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections",
2481
+ "type": [
2482
+ "string",
2483
+ "null"
2484
+ ]
2485
+ },
2486
+ "priority": {
2487
+ "description": "Change the priority of the Debian Package. By default, it is set to `optional`. Recognized Priorities as of now are : `required`, `important`, `standard`, `optional`, `extra`",
2488
+ "type": [
2489
+ "string",
2490
+ "null"
2491
+ ]
2492
+ },
2493
+ "changelog": {
2494
+ "description": "Path of the uncompressed Changelog file, to be stored at /usr/share/doc/package-name/changelog.gz. See https://www.debian.org/doc/debian-policy/ch-docs.html#changelog-files-and-release-notes",
2495
+ "type": [
2496
+ "string",
2497
+ "null"
2498
+ ]
2499
+ },
2452
2500
  "desktopTemplate": {
2453
2501
  "description": "Path to a custom desktop file Handlebars template.\n\nAvailable variables: `categories`, `comment` (optional), `exec`, `icon` and `name`.",
2454
2502
  "type": [
@@ -2456,22 +2504,29 @@
2456
2504
  "null"
2457
2505
  ]
2458
2506
  },
2459
- "section": {
2460
- "description": "Define the section in Debian Control file. See : https://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections",
2507
+ "preInstallScript": {
2508
+ "description": "Path to script that will be executed before the package is unpacked. See https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html",
2461
2509
  "type": [
2462
2510
  "string",
2463
2511
  "null"
2464
2512
  ]
2465
2513
  },
2466
- "priority": {
2467
- "description": "Change the priority of the Debian Package. By default, it is set to `optional`. Recognized Priorities as of now are : `required`, `important`, `standard`, `optional`, `extra`",
2514
+ "postInstallScript": {
2515
+ "description": "Path to script that will be executed after the package is unpacked. See https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html",
2468
2516
  "type": [
2469
2517
  "string",
2470
2518
  "null"
2471
2519
  ]
2472
2520
  },
2473
- "changelog": {
2474
- "description": "Path of the uncompressed Changelog file, to be stored at /usr/share/doc/package-name/changelog.gz. See https://www.debian.org/doc/debian-policy/ch-docs.html#changelog-files-and-release-notes",
2521
+ "preRemoveScript": {
2522
+ "description": "Path to script that will be executed before the package is removed. See https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html",
2523
+ "type": [
2524
+ "string",
2525
+ "null"
2526
+ ]
2527
+ },
2528
+ "postRemoveScript": {
2529
+ "description": "Path to script that will be executed after the package is removed. See https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html",
2475
2530
  "type": [
2476
2531
  "string",
2477
2532
  "null"
@@ -2494,6 +2549,36 @@
2494
2549
  "type": "string"
2495
2550
  }
2496
2551
  },
2552
+ "provides": {
2553
+ "description": "The list of RPM dependencies your application provides.",
2554
+ "type": [
2555
+ "array",
2556
+ "null"
2557
+ ],
2558
+ "items": {
2559
+ "type": "string"
2560
+ }
2561
+ },
2562
+ "conflicts": {
2563
+ "description": "The list of RPM dependencies your application conflicts with. They must not be present in order for the package to be installed.",
2564
+ "type": [
2565
+ "array",
2566
+ "null"
2567
+ ],
2568
+ "items": {
2569
+ "type": "string"
2570
+ }
2571
+ },
2572
+ "obsoletes": {
2573
+ "description": "The list of RPM dependencies your application supersedes - if this package is installed, packages listed as “obsoletes” will be automatically removed (if they are present).",
2574
+ "type": [
2575
+ "array",
2576
+ "null"
2577
+ ],
2578
+ "items": {
2579
+ "type": "string"
2580
+ }
2581
+ },
2497
2582
  "release": {
2498
2583
  "description": "The RPM release tag.",
2499
2584
  "default": "1",
@@ -2520,6 +2605,34 @@
2520
2605
  "string",
2521
2606
  "null"
2522
2607
  ]
2608
+ },
2609
+ "preInstallScript": {
2610
+ "description": "Path to script that will be executed before the package is unpacked. See http://ftp.rpm.org/max-rpm/s1-rpm-inside-scripts.html",
2611
+ "type": [
2612
+ "string",
2613
+ "null"
2614
+ ]
2615
+ },
2616
+ "postInstallScript": {
2617
+ "description": "Path to script that will be executed after the package is unpacked. See http://ftp.rpm.org/max-rpm/s1-rpm-inside-scripts.html",
2618
+ "type": [
2619
+ "string",
2620
+ "null"
2621
+ ]
2622
+ },
2623
+ "preRemoveScript": {
2624
+ "description": "Path to script that will be executed before the package is removed. See http://ftp.rpm.org/max-rpm/s1-rpm-inside-scripts.html",
2625
+ "type": [
2626
+ "string",
2627
+ "null"
2628
+ ]
2629
+ },
2630
+ "postRemoveScript": {
2631
+ "description": "Path to script that will be executed after the package is removed. See http://ftp.rpm.org/max-rpm/s1-rpm-inside-scripts.html",
2632
+ "type": [
2633
+ "string",
2634
+ "null"
2635
+ ]
2523
2636
  }
2524
2637
  },
2525
2638
  "additionalProperties": false
@@ -2738,6 +2851,16 @@
2738
2851
  "type": "integer",
2739
2852
  "format": "uint32",
2740
2853
  "minimum": 0.0
2854
+ },
2855
+ "versionCode": {
2856
+ "description": "The version code of the application. It is limited to 2,100,000,000 as per Google Play Store requirements.\n\nBy default we use your configured version and perform the following math: versionCode = version.major * 1000000 + version.minor * 1000 + version.patch",
2857
+ "type": [
2858
+ "integer",
2859
+ "null"
2860
+ ],
2861
+ "format": "uint32",
2862
+ "maximum": 2100000000.0,
2863
+ "minimum": 1.0
2741
2864
  }
2742
2865
  },
2743
2866
  "additionalProperties": false
package/src/lib.rs CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2023 Tauri Programme within The Commons Conservancy
1
+ // Copyright 2019-2024 Tauri Programme within The Commons Conservancy
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  // SPDX-License-Identifier: MIT
4
4
 
package/tauri.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // Copyright 2019-2023 Tauri Programme within The Commons Conservancy
3
+ // Copyright 2019-2024 Tauri Programme within The Commons Conservancy
4
4
  // SPDX-License-Identifier: Apache-2.0
5
5
  // SPDX-License-Identifier: MIT
6
6