@tauri-apps/cli 2.0.0-alpha.20 → 2.0.0-alpha.21

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,31 @@
1
1
  # Changelog
2
2
 
3
+ ## \[2.0.0-alpha.21]
4
+
5
+ ### New Features
6
+
7
+ - [`27bad32d`](https://www.github.com/tauri-apps/tauri/commit/27bad32d4d4acca8155b20225d529d540fb9aaf4)([#7798](https://www.github.com/tauri-apps/tauri/pull/7798)) Add `files` object on the `tauri > bundle > macOS` configuration option.
8
+ - [`0ec28c39`](https://www.github.com/tauri-apps/tauri/commit/0ec28c39f478de7199a66dd75e8642e1aa1344e6)([#8529](https://www.github.com/tauri-apps/tauri/pull/8529)) Include tauri-build on the migration script.
9
+
10
+ ### Enhancements
11
+
12
+ - [`091100ac`](https://www.github.com/tauri-apps/tauri/commit/091100acbb507b51de39fb1446f685926f888fd2)([#5202](https://www.github.com/tauri-apps/tauri/pull/5202)) Add RPM packaging
13
+
14
+ ### Bug Fixes
15
+
16
+ - [`4f73057e`](https://www.github.com/tauri-apps/tauri/commit/4f73057e6fd4c137bc112367fb91f5fc0c8a39f6)([#8486](https://www.github.com/tauri-apps/tauri/pull/8486)) Prevent `Invalid target triple` warnings and correctly set `TAURI_ENV_` vars when target triple contains 4 components.
17
+
18
+ ### Dependencies
19
+
20
+ - Upgraded to `tauri-cli@2.0.0-alpha.21`
21
+
22
+ ### Breaking Changes
23
+
24
+ - [`4f73057e`](https://www.github.com/tauri-apps/tauri/commit/4f73057e6fd4c137bc112367fb91f5fc0c8a39f6)([#8486](https://www.github.com/tauri-apps/tauri/pull/8486)) Removed `TAURI_ENV_PLATFORM_TYPE` which will not be set for CLI hook commands anymore, use `TAURI_ENV_PLATFORM` instead. Also Changed value of `TAURI_ENV_PLATFORM` and `TAURI_ENV_ARCH` values to match the target triple more accurately:
25
+
26
+ - `darwin` and `androideabi` are no longer replaced with `macos` and `android` in `TAURI_ENV_PLATFORM`.
27
+ - `i686` and `i586` are no longer replaced with `x86` in `TAURI_ENV_ARCH`.
28
+
3
29
  ## \[2.0.0-alpha.20]
4
30
 
5
31
  ### Dependencies
@@ -288,6 +314,34 @@
288
314
  - First mobile alpha release!
289
315
  - [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
290
316
 
317
+ ## \[1.5.8]
318
+
319
+ ### Dependencies
320
+
321
+ - Upgraded to `tauri-cli@1.5.8`
322
+
323
+ ## \[1.5.7]
324
+
325
+ ### Bug Fixes
326
+
327
+ - [`1d5aa38a`](https://www.github.com/tauri-apps/tauri/commit/1d5aa38ae418ea31f593590b6d32cf04d3bfd8c1)([#8162](https://www.github.com/tauri-apps/tauri/pull/8162)) Fixes errors on command output, occuring when the output stream contains an invalid UTF-8 character, or ends with a multi-bytes UTF-8 character.
328
+ - [`f26d9f08`](https://www.github.com/tauri-apps/tauri/commit/f26d9f0884f63f61b9f4d4fac15e6b251163793e)([#8263](https://www.github.com/tauri-apps/tauri/pull/8263)) Fixes an issue in the NSIS installer which caused the uninstallation to leave empty folders on the system if the `resources` feature was used.
329
+ - [`92bc7d0e`](https://www.github.com/tauri-apps/tauri/commit/92bc7d0e16157434330a1bcf1eefda6f0f1e5f85)([#8233](https://www.github.com/tauri-apps/tauri/pull/8233)) Fixes an issue in the NSIS installer which caused the installation to take much longer than expected when many `resources` were added to the bundle.
330
+
331
+ ### Dependencies
332
+
333
+ - Upgraded to `tauri-cli@1.5.7`
334
+
335
+ ## \[1.5.6]
336
+
337
+ ### Bug Fixes
338
+
339
+ - [`5264e41d`](https://www.github.com/tauri-apps/tauri/commit/5264e41db3763e4c2eb0c3c21bd423fb7bece3e2)([#8082](https://www.github.com/tauri-apps/tauri/pull/8082)) Downgraded `rust-minisign` to `0.7.3` to fix signing updater bundles with empty passwords.
340
+
341
+ ### Dependencies
342
+
343
+ - Upgraded to `tauri-cli@1.5.6`
344
+
291
345
  ## \[1.5.5]
292
346
 
293
347
  ### Enhancements
package/Cargo.toml CHANGED
@@ -8,13 +8,13 @@ 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.13", default-features = false, features = ["napi4"] }
12
- napi-derive = "2.13"
11
+ napi = { version = "2.14", default-features = false, features = ["napi4"] }
12
+ napi-derive = "2.14"
13
13
  tauri-cli = { path = "..", default-features = false }
14
14
  log = "0.4.20"
15
15
 
16
16
  [build-dependencies]
17
- napi-build = "2.0"
17
+ napi-build = "2.1"
18
18
 
19
19
  [features]
20
20
  default = ["tauri-cli/default"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tauri-apps/cli",
3
- "version": "2.0.0-alpha.20",
3
+ "version": "2.0.0-alpha.21",
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-alpha.20",
72
- "@tauri-apps/cli-darwin-x64": "2.0.0-alpha.20",
73
- "@tauri-apps/cli-linux-x64-gnu": "2.0.0-alpha.20",
74
- "@tauri-apps/cli-darwin-arm64": "2.0.0-alpha.20",
75
- "@tauri-apps/cli-linux-arm64-gnu": "2.0.0-alpha.20",
76
- "@tauri-apps/cli-linux-arm64-musl": "2.0.0-alpha.20",
77
- "@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-alpha.20",
78
- "@tauri-apps/cli-linux-x64-musl": "2.0.0-alpha.20",
79
- "@tauri-apps/cli-win32-ia32-msvc": "2.0.0-alpha.20",
80
- "@tauri-apps/cli-win32-arm64-msvc": "2.0.0-alpha.20"
71
+ "@tauri-apps/cli-win32-x64-msvc": "2.0.0-alpha.21",
72
+ "@tauri-apps/cli-darwin-x64": "2.0.0-alpha.21",
73
+ "@tauri-apps/cli-linux-x64-gnu": "2.0.0-alpha.21",
74
+ "@tauri-apps/cli-darwin-arm64": "2.0.0-alpha.21",
75
+ "@tauri-apps/cli-linux-arm64-gnu": "2.0.0-alpha.21",
76
+ "@tauri-apps/cli-linux-arm64-musl": "2.0.0-alpha.21",
77
+ "@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-alpha.21",
78
+ "@tauri-apps/cli-linux-x64-musl": "2.0.0-alpha.21",
79
+ "@tauri-apps/cli-win32-ia32-msvc": "2.0.0-alpha.21",
80
+ "@tauri-apps/cli-win32-arm64-msvc": "2.0.0-alpha.21"
81
81
  }
82
82
  }
package/schema.json CHANGED
@@ -55,8 +55,14 @@
55
55
  "icon": [],
56
56
  "identifier": "",
57
57
  "macOS": {
58
+ "files": {},
58
59
  "minimumSystemVersion": "10.13"
59
60
  },
61
+ "rpm": {
62
+ "epoch": 0,
63
+ "files": {},
64
+ "release": "1"
65
+ },
60
66
  "targets": "all",
61
67
  "updater": {
62
68
  "active": false,
@@ -203,8 +209,14 @@
203
209
  "icon": [],
204
210
  "identifier": "",
205
211
  "macOS": {
212
+ "files": {},
206
213
  "minimumSystemVersion": "10.13"
207
214
  },
215
+ "rpm": {
216
+ "epoch": 0,
217
+ "files": {},
218
+ "release": "1"
219
+ },
208
220
  "targets": "all",
209
221
  "updater": {
210
222
  "active": false,
@@ -933,7 +945,7 @@
933
945
  "type": "boolean"
934
946
  },
935
947
  "targets": {
936
- "description": "The bundle targets, currently supports [\"deb\", \"appimage\", \"nsis\", \"msi\", \"app\", \"dmg\", \"updater\"] or \"all\".",
948
+ "description": "The bundle targets, currently supports [\"deb\", \"rpm\", \"appimage\", \"nsis\", \"msi\", \"app\", \"dmg\", \"updater\"] or \"all\".",
937
949
  "default": "all",
938
950
  "allOf": [
939
951
  {
@@ -1031,6 +1043,19 @@
1031
1043
  }
1032
1044
  ]
1033
1045
  },
1046
+ "rpm": {
1047
+ "description": "Configuration for the RPM bundle.",
1048
+ "default": {
1049
+ "epoch": 0,
1050
+ "files": {},
1051
+ "release": "1"
1052
+ },
1053
+ "allOf": [
1054
+ {
1055
+ "$ref": "#/definitions/RpmConfig"
1056
+ }
1057
+ ]
1058
+ },
1034
1059
  "dmg": {
1035
1060
  "description": "DMG-specific settings.",
1036
1061
  "default": {
@@ -1056,6 +1081,7 @@
1056
1081
  "macOS": {
1057
1082
  "description": "Configuration for the macOS bundles.",
1058
1083
  "default": {
1084
+ "files": {},
1059
1085
  "minimumSystemVersion": "10.13"
1060
1086
  },
1061
1087
  "allOf": [
@@ -1170,6 +1196,13 @@
1170
1196
  "deb"
1171
1197
  ]
1172
1198
  },
1199
+ {
1200
+ "description": "The RPM bundle (.rpm).",
1201
+ "type": "string",
1202
+ "enum": [
1203
+ "rpm"
1204
+ ]
1205
+ },
1173
1206
  {
1174
1207
  "description": "The AppImage bundle (.appimage).",
1175
1208
  "type": "string",
@@ -1368,6 +1401,57 @@
1368
1401
  },
1369
1402
  "additionalProperties": false
1370
1403
  },
1404
+ "RpmConfig": {
1405
+ "description": "Configuration for RPM bundles.",
1406
+ "type": "object",
1407
+ "properties": {
1408
+ "license": {
1409
+ "description": "The package's license identifier. If not set, defaults to the license from the Cargo.toml file.",
1410
+ "type": [
1411
+ "string",
1412
+ "null"
1413
+ ]
1414
+ },
1415
+ "depends": {
1416
+ "description": "The list of RPM dependencies your application relies on.",
1417
+ "type": [
1418
+ "array",
1419
+ "null"
1420
+ ],
1421
+ "items": {
1422
+ "type": "string"
1423
+ }
1424
+ },
1425
+ "release": {
1426
+ "description": "The RPM release tag.",
1427
+ "default": "1",
1428
+ "type": "string"
1429
+ },
1430
+ "epoch": {
1431
+ "description": "The RPM epoch.",
1432
+ "default": 0,
1433
+ "type": "integer",
1434
+ "format": "uint32",
1435
+ "minimum": 0.0
1436
+ },
1437
+ "files": {
1438
+ "description": "The files to include on the package.",
1439
+ "default": {},
1440
+ "type": "object",
1441
+ "additionalProperties": {
1442
+ "type": "string"
1443
+ }
1444
+ },
1445
+ "desktopTemplate": {
1446
+ "description": "Path to a custom desktop file Handlebars template.\n\nAvailable variables: `categories`, `comment` (optional), `exec`, `icon` and `name`.",
1447
+ "type": [
1448
+ "string",
1449
+ "null"
1450
+ ]
1451
+ }
1452
+ },
1453
+ "additionalProperties": false
1454
+ },
1371
1455
  "DmgConfig": {
1372
1456
  "description": "Configuration for Apple Disk Image (.dmg) bundles.\n\nSee more: https://tauri.app/v1/api/config#dmgconfig",
1373
1457
  "type": "object",
@@ -1489,6 +1573,14 @@
1489
1573
  "type": "string"
1490
1574
  }
1491
1575
  },
1576
+ "files": {
1577
+ "description": "The files to include in the application relative to the Contents directory.",
1578
+ "default": {},
1579
+ "type": "object",
1580
+ "additionalProperties": {
1581
+ "type": "string"
1582
+ }
1583
+ },
1492
1584
  "minimumSystemVersion": {
1493
1585
  "description": "A version string indicating the minimum macOS X version that the bundled application supports. Defaults to `10.13`.\n\nSetting it to `null` completely removes the `LSMinimumSystemVersion` field on the bundle's `Info.plist` and the `MACOSX_DEPLOYMENT_TARGET` environment variable.\n\nAn empty string is considered an invalid value so the default value is used.",
1494
1586
  "default": "10.13",