@tauri-apps/cli 2.0.0-beta.1 → 2.0.0-beta.3

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/package.json +11 -11
  3. package/schema.json +296 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## \[2.0.0-beta.3]
4
+
5
+ ### Enhancements
6
+
7
+ - [`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.
8
+
9
+ ### Dependencies
10
+
11
+ - Upgraded to `tauri-cli@2.0.0-beta.3`
12
+
13
+ ## \[2.0.0-beta.2]
14
+
15
+ ### Enhancements
16
+
17
+ - [`83a68deb`](https://www.github.com/tauri-apps/tauri/commit/83a68deb5676d39cd4728d2e140f6b46d5f787ed)([#8797](https://www.github.com/tauri-apps/tauri/pull/8797)) Update app template following capabilities configuration change.
18
+
19
+ ### Bug Fixes
20
+
21
+ - [`aa06a053`](https://www.github.com/tauri-apps/tauri/commit/aa06a0534cf224038866e0ddd6910ea873b2574d)([#8810](https://www.github.com/tauri-apps/tauri/pull/8810)) Fix `tauri plugin android init` printing invalid code that has a missing closing `"`.
22
+ - [`3cee26a5`](https://www.github.com/tauri-apps/tauri/commit/3cee26a58ab44639a12c7816f4096655daa327a4)([#8865](https://www.github.com/tauri-apps/tauri/pull/8865)) On Windows, fixed `tauri info` fails to detect the build tool when the system language is CJK.
23
+ - [`052e8b43`](https://www.github.com/tauri-apps/tauri/commit/052e8b4311d9f0f963a2866163be27bfd8f70c60)([#8838](https://www.github.com/tauri-apps/tauri/pull/8838)) Downgrade minisign dependency fixing updater signing key bug and prevent it from happening in the future.
24
+ - [`fb0d9971`](https://www.github.com/tauri-apps/tauri/commit/fb0d997117367e3387896bcd0fba004579475c40)([#8783](https://www.github.com/tauri-apps/tauri/pull/8783)) Fixes a regression on the `--config` argument not accepting file paths.
25
+ - [`baca704d`](https://www.github.com/tauri-apps/tauri/commit/baca704d4b5fae239fc320d10140f35bd705bfbb)([#8768](https://www.github.com/tauri-apps/tauri/pull/8768)) Do not migrate updater configuration if the active flag is set to false.
26
+
27
+ ### Dependencies
28
+
29
+ - Upgraded to `tauri-cli@2.0.0-beta.2`
30
+
3
31
  ## \[2.0.0-beta.1]
4
32
 
5
33
  ### Enhancements
@@ -366,6 +394,28 @@
366
394
  - First mobile alpha release!
367
395
  - [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
368
396
 
397
+ ## \[1.5.10]
398
+
399
+ ### Bug Fixes
400
+
401
+ - [`b0f27814`](https://www.github.com/tauri-apps/tauri/commit/b0f27814b90ded2f1ed44b7852080eedbff0d9e4)([#8776](https://www.github.com/tauri-apps/tauri/pull/8776)) Fix `fail to rename app` when using `--profile dev`.
402
+ - [`0bff8c32`](https://www.github.com/tauri-apps/tauri/commit/0bff8c325d004fdead2023f58e0f5fd73a9c22ba)([#8697](https://www.github.com/tauri-apps/tauri/pull/8697)) Fix the built-in dev server failing to serve files when URL had queries `?` and other url components.
403
+ - [`67d7877f`](https://www.github.com/tauri-apps/tauri/commit/67d7877f27f265c133a70d48a46c83ffff31d571)([#8520](https://www.github.com/tauri-apps/tauri/pull/8520)) The cli now also watches cargo workspace members if the tauri folder is the workspace root.
404
+
405
+ ### Dependencies
406
+
407
+ - Upgraded to `tauri-cli@1.5.10`
408
+
409
+ ## \[1.5.9]
410
+
411
+ ### Bug Fixes
412
+
413
+ - [`0a2175ea`](https://www.github.com/tauri-apps/tauri/commit/0a2175eabb736b2a4cd01ab682e08be0b5ebb2b9)([#8439](https://www.github.com/tauri-apps/tauri/pull/8439)) Expand glob patterns in workspace member paths so the CLI would watch all matching pathhs.
414
+
415
+ ### Dependencies
416
+
417
+ - Upgraded to `tauri-cli@1.5.9`
418
+
369
419
  ## \[1.5.8]
370
420
 
371
421
  ### Dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tauri-apps/cli",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.3",
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.1",
72
- "@tauri-apps/cli-darwin-x64": "2.0.0-beta.1",
73
- "@tauri-apps/cli-linux-x64-gnu": "2.0.0-beta.1",
74
- "@tauri-apps/cli-darwin-arm64": "2.0.0-beta.1",
75
- "@tauri-apps/cli-linux-arm64-gnu": "2.0.0-beta.1",
76
- "@tauri-apps/cli-linux-arm64-musl": "2.0.0-beta.1",
77
- "@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-beta.1",
78
- "@tauri-apps/cli-linux-x64-musl": "2.0.0-beta.1",
79
- "@tauri-apps/cli-win32-ia32-msvc": "2.0.0-beta.1",
80
- "@tauri-apps/cli-win32-arm64-msvc": "2.0.0-beta.1"
71
+ "@tauri-apps/cli-win32-x64-msvc": "2.0.0-beta.3",
72
+ "@tauri-apps/cli-darwin-x64": "2.0.0-beta.3",
73
+ "@tauri-apps/cli-linux-x64-gnu": "2.0.0-beta.3",
74
+ "@tauri-apps/cli-darwin-arm64": "2.0.0-beta.3",
75
+ "@tauri-apps/cli-linux-arm64-gnu": "2.0.0-beta.3",
76
+ "@tauri-apps/cli-linux-arm64-musl": "2.0.0-beta.3",
77
+ "@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-beta.3",
78
+ "@tauri-apps/cli-linux-x64-musl": "2.0.0-beta.3",
79
+ "@tauri-apps/cli-win32-ia32-msvc": "2.0.0-beta.3",
80
+ "@tauri-apps/cli-win32-arm64-msvc": "2.0.0-beta.3"
81
81
  }
82
82
  }
package/schema.json CHANGED
@@ -40,6 +40,7 @@
40
40
  "enable": false,
41
41
  "scope": []
42
42
  },
43
+ "capabilities": [],
43
44
  "dangerousDisableAssetCspModification": false,
44
45
  "freezePrototype": false,
45
46
  "pattern": {
@@ -158,6 +159,7 @@
158
159
  "enable": false,
159
160
  "scope": []
160
161
  },
162
+ "capabilities": [],
161
163
  "dangerousDisableAssetCspModification": false,
162
164
  "freezePrototype": false,
163
165
  "pattern": {
@@ -878,6 +880,14 @@
878
880
  "$ref": "#/definitions/PatternKind"
879
881
  }
880
882
  ]
883
+ },
884
+ "capabilities": {
885
+ "description": "List of capabilities that are enabled on the application.\n\nIf the list is empty, all capabilities are included.",
886
+ "default": [],
887
+ "type": "array",
888
+ "items": {
889
+ "$ref": "#/definitions/CapabilityEntry"
890
+ }
881
891
  }
882
892
  },
883
893
  "additionalProperties": false
@@ -1040,6 +1050,271 @@
1040
1050
  }
1041
1051
  ]
1042
1052
  },
1053
+ "CapabilityEntry": {
1054
+ "description": "A capability entry which can be either an inlined capability or a reference to a capability defined on its own file.",
1055
+ "anyOf": [
1056
+ {
1057
+ "description": "An inlined capability.",
1058
+ "allOf": [
1059
+ {
1060
+ "$ref": "#/definitions/Capability"
1061
+ }
1062
+ ]
1063
+ },
1064
+ {
1065
+ "description": "Reference to a capability identifier.",
1066
+ "type": "string"
1067
+ }
1068
+ ]
1069
+ },
1070
+ "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.",
1072
+ "type": "object",
1073
+ "required": [
1074
+ "identifier",
1075
+ "permissions",
1076
+ "windows"
1077
+ ],
1078
+ "properties": {
1079
+ "identifier": {
1080
+ "description": "Identifier of the capability.",
1081
+ "type": "string"
1082
+ },
1083
+ "description": {
1084
+ "description": "Description of the capability.",
1085
+ "default": "",
1086
+ "type": "string"
1087
+ },
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": [
1092
+ {
1093
+ "$ref": "#/definitions/CapabilityContext"
1094
+ }
1095
+ ]
1096
+ },
1097
+ "windows": {
1098
+ "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
+ "type": "array",
1100
+ "items": {
1101
+ "type": "string"
1102
+ }
1103
+ },
1104
+ "webviews": {
1105
+ "description": "List of webviews that uses this capability. Can be a glob pattern.\n\nThis is only required when using on multiwebview contexts, by default all child webviews of a window that matches [`Self::windows`] are linked.",
1106
+ "type": "array",
1107
+ "items": {
1108
+ "type": "string"
1109
+ }
1110
+ },
1111
+ "permissions": {
1112
+ "description": "List of permissions attached to this capability. Must include the plugin name as prefix in the form of `${plugin-name}:${permission-name}`.",
1113
+ "type": "array",
1114
+ "items": {
1115
+ "$ref": "#/definitions/PermissionEntry"
1116
+ }
1117
+ },
1118
+ "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"
1126
+ ],
1127
+ "type": "array",
1128
+ "items": {
1129
+ "$ref": "#/definitions/Target"
1130
+ }
1131
+ }
1132
+ }
1133
+ },
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
1168
+ }
1169
+ ]
1170
+ },
1171
+ "PermissionEntry": {
1172
+ "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.",
1173
+ "anyOf": [
1174
+ {
1175
+ "description": "Reference a permission or permission set by identifier.",
1176
+ "allOf": [
1177
+ {
1178
+ "$ref": "#/definitions/Identifier"
1179
+ }
1180
+ ]
1181
+ },
1182
+ {
1183
+ "description": "Reference a permission or permission set by identifier and extends its scope.",
1184
+ "type": "object",
1185
+ "required": [
1186
+ "identifier"
1187
+ ],
1188
+ "properties": {
1189
+ "identifier": {
1190
+ "description": "Identifier of the permission or permission set.",
1191
+ "allOf": [
1192
+ {
1193
+ "$ref": "#/definitions/Identifier"
1194
+ }
1195
+ ]
1196
+ },
1197
+ "allow": {
1198
+ "description": "Data that defines what is allowed by the scope.",
1199
+ "type": [
1200
+ "array",
1201
+ "null"
1202
+ ],
1203
+ "items": {
1204
+ "$ref": "#/definitions/Value"
1205
+ }
1206
+ },
1207
+ "deny": {
1208
+ "description": "Data that defines what is denied by the scope.",
1209
+ "type": [
1210
+ "array",
1211
+ "null"
1212
+ ],
1213
+ "items": {
1214
+ "$ref": "#/definitions/Value"
1215
+ }
1216
+ }
1217
+ }
1218
+ }
1219
+ ]
1220
+ },
1221
+ "Identifier": {
1222
+ "type": "string"
1223
+ },
1224
+ "Value": {
1225
+ "description": "All supported ACL values.",
1226
+ "anyOf": [
1227
+ {
1228
+ "description": "Represents a null JSON value.",
1229
+ "type": "null"
1230
+ },
1231
+ {
1232
+ "description": "Represents a [`bool`].",
1233
+ "type": "boolean"
1234
+ },
1235
+ {
1236
+ "description": "Represents a valid ACL [`Number`].",
1237
+ "allOf": [
1238
+ {
1239
+ "$ref": "#/definitions/Number"
1240
+ }
1241
+ ]
1242
+ },
1243
+ {
1244
+ "description": "Represents a [`String`].",
1245
+ "type": "string"
1246
+ },
1247
+ {
1248
+ "description": "Represents a list of other [`Value`]s.",
1249
+ "type": "array",
1250
+ "items": {
1251
+ "$ref": "#/definitions/Value"
1252
+ }
1253
+ },
1254
+ {
1255
+ "description": "Represents a map of [`String`] keys to [`Value`]s.",
1256
+ "type": "object",
1257
+ "additionalProperties": {
1258
+ "$ref": "#/definitions/Value"
1259
+ }
1260
+ }
1261
+ ]
1262
+ },
1263
+ "Number": {
1264
+ "description": "A valid ACL number.",
1265
+ "anyOf": [
1266
+ {
1267
+ "description": "Represents an [`i64`].",
1268
+ "type": "integer",
1269
+ "format": "int64"
1270
+ },
1271
+ {
1272
+ "description": "Represents a [`f64`].",
1273
+ "type": "number",
1274
+ "format": "double"
1275
+ }
1276
+ ]
1277
+ },
1278
+ "Target": {
1279
+ "description": "Platform target.",
1280
+ "oneOf": [
1281
+ {
1282
+ "description": "MacOS.",
1283
+ "type": "string",
1284
+ "enum": [
1285
+ "macOS"
1286
+ ]
1287
+ },
1288
+ {
1289
+ "description": "Windows.",
1290
+ "type": "string",
1291
+ "enum": [
1292
+ "windows"
1293
+ ]
1294
+ },
1295
+ {
1296
+ "description": "Linux.",
1297
+ "type": "string",
1298
+ "enum": [
1299
+ "linux"
1300
+ ]
1301
+ },
1302
+ {
1303
+ "description": "Android.",
1304
+ "type": "string",
1305
+ "enum": [
1306
+ "android"
1307
+ ]
1308
+ },
1309
+ {
1310
+ "description": "iOS.",
1311
+ "type": "string",
1312
+ "enum": [
1313
+ "iOS"
1314
+ ]
1315
+ }
1316
+ ]
1317
+ },
1043
1318
  "TrayIconConfig": {
1044
1319
  "description": "Configuration for application tray icon.\n\nSee more: <https://tauri.app/v1/api/config#trayiconconfig>",
1045
1320
  "type": "object",
@@ -2180,6 +2455,27 @@
2180
2455
  "string",
2181
2456
  "null"
2182
2457
  ]
2458
+ },
2459
+ "section": {
2460
+ "description": "Define the section in Debian Control file. See : https://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections",
2461
+ "type": [
2462
+ "string",
2463
+ "null"
2464
+ ]
2465
+ },
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`",
2468
+ "type": [
2469
+ "string",
2470
+ "null"
2471
+ ]
2472
+ },
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",
2475
+ "type": [
2476
+ "string",
2477
+ "null"
2478
+ ]
2183
2479
  }
2184
2480
  },
2185
2481
  "additionalProperties": false