@tauri-apps/cli 2.0.0-alpha.16 → 2.0.0-alpha.17
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 +74 -0
- package/README.md +1 -1
- package/package.json +13 -15
- package/schema.json +66 -9
- package/tauri.js +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## \[2.0.0-alpha.17]
|
|
4
|
+
|
|
5
|
+
### Enhancements
|
|
6
|
+
|
|
7
|
+
- [`c6c59cf2`](https://www.github.com/tauri-apps/tauri/commit/c6c59cf2373258b626b00a26f4de4331765dd487) Pull changes from Tauri 1.5 release.
|
|
8
|
+
|
|
9
|
+
### Dependencies
|
|
10
|
+
|
|
11
|
+
- Upgraded to `tauri-cli@2.0.0-alpha.17`
|
|
12
|
+
|
|
13
|
+
### Breaking Changes
|
|
14
|
+
|
|
15
|
+
- [`198abe3c`](https://www.github.com/tauri-apps/tauri/commit/198abe3c2cae06dacab860b3a93f715dcf529a95)([#8076](https://www.github.com/tauri-apps/tauri/pull/8076)) Updated the mobile plugin templates following the tauri v2.0.0-alpha.17 changes.
|
|
16
|
+
|
|
3
17
|
## \[2.0.0-alpha.16]
|
|
4
18
|
|
|
5
19
|
### New Features
|
|
@@ -240,6 +254,66 @@
|
|
|
240
254
|
- First mobile alpha release!
|
|
241
255
|
- [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
|
|
242
256
|
|
|
257
|
+
## \[1.5.5]
|
|
258
|
+
|
|
259
|
+
### Enhancements
|
|
260
|
+
|
|
261
|
+
- [`9bead42d`](https://www.github.com/tauri-apps/tauri/commit/9bead42dbca0fb6dd7ea0b6bfb2f2308a5c5f992)([#8059](https://www.github.com/tauri-apps/tauri/pull/8059)) Allow rotating the updater private key.
|
|
262
|
+
|
|
263
|
+
### Bug Fixes
|
|
264
|
+
|
|
265
|
+
- [`be8e5aa3`](https://www.github.com/tauri-apps/tauri/commit/be8e5aa3071d9bc5d0bd24647e8168f312d11c8d)([#8042](https://www.github.com/tauri-apps/tauri/pull/8042)) Fixes duplicated newlines on command outputs.
|
|
266
|
+
|
|
267
|
+
### Dependencies
|
|
268
|
+
|
|
269
|
+
- Upgraded to `tauri-cli@1.5.5`
|
|
270
|
+
|
|
271
|
+
## \[1.5.4]
|
|
272
|
+
|
|
273
|
+
### Dependencies
|
|
274
|
+
|
|
275
|
+
- Upgraded to `tauri-cli@1.5.4`
|
|
276
|
+
|
|
277
|
+
## \[1.5.3]
|
|
278
|
+
|
|
279
|
+
### Dependencies
|
|
280
|
+
|
|
281
|
+
- Upgraded to `tauri-cli@1.5.3`
|
|
282
|
+
|
|
283
|
+
## \[1.5.2]
|
|
284
|
+
|
|
285
|
+
### Dependencies
|
|
286
|
+
|
|
287
|
+
- Upgraded to `tauri-cli@1.5.2`
|
|
288
|
+
|
|
289
|
+
## \[1.5.1]
|
|
290
|
+
|
|
291
|
+
### Bug Fixes
|
|
292
|
+
|
|
293
|
+
- [`d6eb46cf`](https://www.github.com/tauri-apps/tauri/commit/d6eb46cf1116d147121f6b6db9d390b5e2fb238d)([#7934](https://www.github.com/tauri-apps/tauri/pull/7934)) On macOS, fix the `apple-id` option name when using `notarytools submit`.
|
|
294
|
+
|
|
295
|
+
### Dependencies
|
|
296
|
+
|
|
297
|
+
- Upgraded to `tauri-cli@1.5.1`
|
|
298
|
+
|
|
299
|
+
## \[1.5.0]
|
|
300
|
+
|
|
301
|
+
### New Features
|
|
302
|
+
|
|
303
|
+
- [`e1526626`](https://www.github.com/tauri-apps/tauri/commit/e152662687ece7a62d383923a50751cc0dd34331)([#7723](https://www.github.com/tauri-apps/tauri/pull/7723)) Support Bun package manager in CLI
|
|
304
|
+
|
|
305
|
+
### Enhancements
|
|
306
|
+
|
|
307
|
+
- [`13279917`](https://www.github.com/tauri-apps/tauri/commit/13279917d4cae071d0ce3a686184d48af079f58a)([#7713](https://www.github.com/tauri-apps/tauri/pull/7713)) Add version of Rust Tauri CLI installed with Cargo to `tauri info` command.
|
|
308
|
+
|
|
309
|
+
### Bug Fixes
|
|
310
|
+
|
|
311
|
+
- [`dad4f54e`](https://www.github.com/tauri-apps/tauri/commit/dad4f54eec9773d2ea6233a7d9fd218741173823)([#7277](https://www.github.com/tauri-apps/tauri/pull/7277)) Removed the automatic version check of the CLI that ran after `tauri` commands which caused various issues.
|
|
312
|
+
|
|
313
|
+
### Dependencies
|
|
314
|
+
|
|
315
|
+
- Upgraded to `tauri-cli@1.5.0`
|
|
316
|
+
|
|
243
317
|
## \[1.4.0]
|
|
244
318
|
|
|
245
319
|
### New Features
|
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ Tauri is a polyglot and generic system that is very composable and allows engine
|
|
|
19
19
|
|
|
20
20
|
Tauri apps can have custom menus and have tray-type interfaces. They can be updated, and are managed by the user's operating system as expected. They are very small, because they use the system's webview. They do not ship a runtime, since the final binary is compiled from rust. This makes the reversing of Tauri apps not a trivial task.
|
|
21
21
|
## This module
|
|
22
|
-
Written in Typescript and packaged such that it can be used with `npm`, `pnpm`, and `
|
|
22
|
+
Written in Typescript and packaged such that it can be used with `npm`, `pnpm`, `yarn`, and `bun`, this library provides a node.js runner for common tasks when using Tauri, like `yarn tauri dev`. For the most part it is a wrapper around [tauri-cli](https://github.com/tauri-apps/tauri/blob/dev/tooling/cli).
|
|
23
23
|
|
|
24
24
|
To learn more about the details of how all of these pieces fit together, please consult this [ARCHITECTURE.md](https://github.com/tauri-apps/tauri/blob/dev/ARCHITECTURE.md) document.
|
|
25
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tauri-apps/cli",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.17",
|
|
4
4
|
"description": "Command line interface for building Tauri apps",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "opencollective",
|
|
@@ -42,13 +42,12 @@
|
|
|
42
42
|
"cross-env": "7.0.3",
|
|
43
43
|
"cross-spawn": "7.0.3",
|
|
44
44
|
"fs-extra": "11.1.1",
|
|
45
|
-
"jest": "29.
|
|
45
|
+
"jest": "29.7.0",
|
|
46
46
|
"jest-transform-toml": "1.0.0",
|
|
47
47
|
"prettier": "2.8.8"
|
|
48
48
|
},
|
|
49
49
|
"resolutions": {
|
|
50
|
-
"json5": "2.2.3"
|
|
51
|
-
"semver": ">=7.5.2"
|
|
50
|
+
"json5": "2.2.3"
|
|
52
51
|
},
|
|
53
52
|
"engines": {
|
|
54
53
|
"node": ">= 10"
|
|
@@ -68,17 +67,16 @@
|
|
|
68
67
|
"format": "prettier --write ./package.json ./tauri.js",
|
|
69
68
|
"format:check": "prettier --check ./package.json ./tauri.js"
|
|
70
69
|
},
|
|
71
|
-
"dependencies": {},
|
|
72
70
|
"optionalDependencies": {
|
|
73
|
-
"@tauri-apps/cli-win32-x64-msvc": "2.0.0-alpha.
|
|
74
|
-
"@tauri-apps/cli-darwin-x64": "2.0.0-alpha.
|
|
75
|
-
"@tauri-apps/cli-linux-x64-gnu": "2.0.0-alpha.
|
|
76
|
-
"@tauri-apps/cli-darwin-arm64": "2.0.0-alpha.
|
|
77
|
-
"@tauri-apps/cli-linux-arm64-gnu": "2.0.0-alpha.
|
|
78
|
-
"@tauri-apps/cli-linux-arm64-musl": "2.0.0-alpha.
|
|
79
|
-
"@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-alpha.
|
|
80
|
-
"@tauri-apps/cli-linux-x64-musl": "2.0.0-alpha.
|
|
81
|
-
"@tauri-apps/cli-win32-ia32-msvc": "2.0.0-alpha.
|
|
82
|
-
"@tauri-apps/cli-win32-arm64-msvc": "2.0.0-alpha.
|
|
71
|
+
"@tauri-apps/cli-win32-x64-msvc": "2.0.0-alpha.17",
|
|
72
|
+
"@tauri-apps/cli-darwin-x64": "2.0.0-alpha.17",
|
|
73
|
+
"@tauri-apps/cli-linux-x64-gnu": "2.0.0-alpha.17",
|
|
74
|
+
"@tauri-apps/cli-darwin-arm64": "2.0.0-alpha.17",
|
|
75
|
+
"@tauri-apps/cli-linux-arm64-gnu": "2.0.0-alpha.17",
|
|
76
|
+
"@tauri-apps/cli-linux-arm64-musl": "2.0.0-alpha.17",
|
|
77
|
+
"@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-alpha.17",
|
|
78
|
+
"@tauri-apps/cli-linux-x64-musl": "2.0.0-alpha.17",
|
|
79
|
+
"@tauri-apps/cli-win32-ia32-msvc": "2.0.0-alpha.17",
|
|
80
|
+
"@tauri-apps/cli-win32-arm64-msvc": "2.0.0-alpha.17"
|
|
83
81
|
}
|
|
84
82
|
}
|
package/schema.json
CHANGED
|
@@ -934,13 +934,14 @@
|
|
|
934
934
|
},
|
|
935
935
|
"resources": {
|
|
936
936
|
"description": "App resources to bundle. Each resource is a path to a file or directory. Glob patterns are supported.",
|
|
937
|
-
"
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
937
|
+
"anyOf": [
|
|
938
|
+
{
|
|
939
|
+
"$ref": "#/definitions/BundleResources"
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"type": "null"
|
|
943
|
+
}
|
|
944
|
+
]
|
|
944
945
|
},
|
|
945
946
|
"copyright": {
|
|
946
947
|
"description": "A copyright string associated with your application.",
|
|
@@ -1163,6 +1164,25 @@
|
|
|
1163
1164
|
}
|
|
1164
1165
|
]
|
|
1165
1166
|
},
|
|
1167
|
+
"BundleResources": {
|
|
1168
|
+
"description": "Definition for bundle resources. Can be either a list of paths to include or a map of source to target paths.",
|
|
1169
|
+
"anyOf": [
|
|
1170
|
+
{
|
|
1171
|
+
"description": "A list of paths to include.",
|
|
1172
|
+
"type": "array",
|
|
1173
|
+
"items": {
|
|
1174
|
+
"type": "string"
|
|
1175
|
+
}
|
|
1176
|
+
},
|
|
1177
|
+
{
|
|
1178
|
+
"description": "A map of source to target paths.",
|
|
1179
|
+
"type": "object",
|
|
1180
|
+
"additionalProperties": {
|
|
1181
|
+
"type": "string"
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
]
|
|
1185
|
+
},
|
|
1166
1186
|
"FileAssociation": {
|
|
1167
1187
|
"description": "File association",
|
|
1168
1188
|
"type": "object",
|
|
@@ -1178,7 +1198,7 @@
|
|
|
1178
1198
|
}
|
|
1179
1199
|
},
|
|
1180
1200
|
"name": {
|
|
1181
|
-
"description": "The name. Maps to `CFBundleTypeName` on macOS. Default to ext[0]",
|
|
1201
|
+
"description": "The name. Maps to `CFBundleTypeName` on macOS. Default to `ext[0]`",
|
|
1182
1202
|
"type": [
|
|
1183
1203
|
"string",
|
|
1184
1204
|
"null"
|
|
@@ -1753,6 +1773,17 @@
|
|
|
1753
1773
|
"description": "Whether to display a language selector dialog before the installer and uninstaller windows are rendered or not. By default the OS language is selected, with a fallback to the first language in the `languages` array.",
|
|
1754
1774
|
"default": false,
|
|
1755
1775
|
"type": "boolean"
|
|
1776
|
+
},
|
|
1777
|
+
"compression": {
|
|
1778
|
+
"description": "Set the compression algorithm used to compress files in the installer.\n\nSee <https://nsis.sourceforge.io/Reference/SetCompressor>",
|
|
1779
|
+
"anyOf": [
|
|
1780
|
+
{
|
|
1781
|
+
"$ref": "#/definitions/NsisCompression"
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
"type": "null"
|
|
1785
|
+
}
|
|
1786
|
+
]
|
|
1756
1787
|
}
|
|
1757
1788
|
},
|
|
1758
1789
|
"additionalProperties": false
|
|
@@ -1783,6 +1814,32 @@
|
|
|
1783
1814
|
}
|
|
1784
1815
|
]
|
|
1785
1816
|
},
|
|
1817
|
+
"NsisCompression": {
|
|
1818
|
+
"description": "Compression algorithms used in the NSIS installer.\n\nSee <https://nsis.sourceforge.io/Reference/SetCompressor>",
|
|
1819
|
+
"oneOf": [
|
|
1820
|
+
{
|
|
1821
|
+
"description": "ZLIB uses the deflate algorithm, it is a quick and simple method. With the default compression level it uses about 300 KB of memory.",
|
|
1822
|
+
"type": "string",
|
|
1823
|
+
"enum": [
|
|
1824
|
+
"zlib"
|
|
1825
|
+
]
|
|
1826
|
+
},
|
|
1827
|
+
{
|
|
1828
|
+
"description": "BZIP2 usually gives better compression ratios than ZLIB, but it is a bit slower and uses more memory. With the default compression level it uses about 4 MB of memory.",
|
|
1829
|
+
"type": "string",
|
|
1830
|
+
"enum": [
|
|
1831
|
+
"bzip2"
|
|
1832
|
+
]
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
"description": "LZMA (default) is a new compression method that gives very good compression ratios. The decompression speed is high (10-20 MB/s on a 2 GHz CPU), the compression speed is lower. The memory size that will be used for decompression is the dictionary size plus a few KBs, the default is 8 MB.",
|
|
1836
|
+
"type": "string",
|
|
1837
|
+
"enum": [
|
|
1838
|
+
"lzma"
|
|
1839
|
+
]
|
|
1840
|
+
}
|
|
1841
|
+
]
|
|
1842
|
+
},
|
|
1786
1843
|
"IosConfig": {
|
|
1787
1844
|
"description": "General configuration for the iOS target.",
|
|
1788
1845
|
"type": "object",
|
|
@@ -2019,7 +2076,7 @@
|
|
|
2019
2076
|
}
|
|
2020
2077
|
},
|
|
2021
2078
|
"plugins": {
|
|
2022
|
-
"description": "The list of plugins that are allowed in this scope.",
|
|
2079
|
+
"description": "The list of plugins that are allowed in this scope. The names should be without the `tauri-plugin-` prefix, for example `\"store\"` for `tauri-plugin-store`.",
|
|
2023
2080
|
"default": [],
|
|
2024
2081
|
"type": "array",
|
|
2025
2082
|
"items": {
|
package/tauri.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
const cli = require('./main')
|
|
8
8
|
const path = require('path')
|
|
9
9
|
|
|
10
|
-
const [bin, script, ...
|
|
10
|
+
const [bin, script, ...args] = process.argv
|
|
11
11
|
const binStem = path.parse(bin).name.toLowerCase()
|
|
12
12
|
|
|
13
13
|
// We want to make a helpful binary name for the underlying CLI helper, if we
|
|
@@ -20,7 +20,7 @@ if (bin === '@tauri-apps/cli') {
|
|
|
20
20
|
}
|
|
21
21
|
// Even if started by a package manager, the binary will be NodeJS.
|
|
22
22
|
// Some distribution still use "nodejs" as the binary name.
|
|
23
|
-
else if (binStem.match(/(nodejs|node)\-?([0-9]*)*$/g)) {
|
|
23
|
+
else if (binStem.match(/(nodejs|node|bun)\-?([0-9]*)*$/g)) {
|
|
24
24
|
const managerStem = process.env.npm_execpath
|
|
25
25
|
? path.parse(process.env.npm_execpath).name.toLowerCase()
|
|
26
26
|
: null
|
|
@@ -32,7 +32,7 @@ else if (binStem.match(/(nodejs|node)\-?([0-9]*)*$/g)) {
|
|
|
32
32
|
manager = 'npm'
|
|
33
33
|
break
|
|
34
34
|
|
|
35
|
-
// Yarn and
|
|
35
|
+
// Yarn, pnpm, and bun have the same stem name as their bin.
|
|
36
36
|
// We assume all unknown package managers do as well.
|
|
37
37
|
default:
|
|
38
38
|
manager = managerStem
|
|
@@ -48,10 +48,10 @@ else if (binStem.match(/(nodejs|node)\-?([0-9]*)*$/g)) {
|
|
|
48
48
|
}
|
|
49
49
|
} else {
|
|
50
50
|
// We don't know what started it, assume it's already stripped.
|
|
51
|
-
|
|
51
|
+
args.unshift(bin)
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
cli.run(
|
|
54
|
+
cli.run(args, binName).catch((err) => {
|
|
55
55
|
cli.logError(err.message)
|
|
56
56
|
process.exit(1)
|
|
57
57
|
})
|