@tauri-apps/cli 2.0.0-alpha.3 → 2.0.0-alpha.5
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 +17 -0
- package/Cargo.toml +2 -2
- package/index.js +11 -5
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## \[2.0.0-alpha.5]
|
|
4
|
+
|
|
5
|
+
- Fixes the iOS project script to build the Rust library.
|
|
6
|
+
- [6e3e4c22](https://www.github.com/tauri-apps/tauri/commit/6e3e4c22be51500bec7856d90dcb2e40ef7fe1b4) fix(cli): use correct variable on script to build Rust iOS code ([#6581](https://www.github.com/tauri-apps/tauri/pull/6581)) on 2023-03-29
|
|
7
|
+
- Fix `tauri android build/dev` crashing when used with standalone `pnpm` executable on Windows.
|
|
8
|
+
- [39df2c98](https://www.github.com/tauri-apps/tauri/commit/39df2c982e5e2ee8617b40f829a2f2e4abfce412) fix(cli/android): fallback to `${program}.cmd` ([#6576](https://www.github.com/tauri-apps/tauri/pull/6576)) on 2023-03-29
|
|
9
|
+
- [6b469c40](https://www.github.com/tauri-apps/tauri/commit/6b469c40c6244ba773d7478adbb41db6fdc72822) chore(changes): adjust change file for Android script execution fix on 2023-03-29
|
|
10
|
+
|
|
11
|
+
## \[2.0.0-alpha.4]
|
|
12
|
+
|
|
13
|
+
- Fix android project build crashing when using `pnpm` caused by extra `--`.
|
|
14
|
+
- [c787f749](https://www.github.com/tauri-apps/tauri/commit/c787f749de01b79d891615aad8c37b23037fff4c) fix(cli): only add `--` to generated android template for npm ([#6508](https://www.github.com/tauri-apps/tauri/pull/6508)) on 2023-03-21
|
|
15
|
+
- Fixes the Android build gradle plugin implementation on Windows.
|
|
16
|
+
- [00241fa9](https://www.github.com/tauri-apps/tauri/commit/00241fa92d104870068a701519340633cc35b716) fix(cli): append .cmd on the gradle plugin binary on Windows, fix [#6502](https://www.github.com/tauri-apps/tauri/pull/6502) ([#6503](https://www.github.com/tauri-apps/tauri/pull/6503)) on 2023-03-21
|
|
17
|
+
- Update `napi-rs` dependencies to latest to fix CLI hanging up forever.
|
|
18
|
+
- [d5ac76b5](https://www.github.com/tauri-apps/tauri/commit/d5ac76b53c7f35253db84ddfbf4ecf975ff6307d) chore(deps): update napi-rs, closes [#6502](https://www.github.com/tauri-apps/tauri/pull/6502) ([#6513](https://www.github.com/tauri-apps/tauri/pull/6513)) on 2023-03-21
|
|
19
|
+
|
|
3
20
|
## \[2.0.0-alpha.3]
|
|
4
21
|
|
|
5
22
|
- Added `plugin android add` and `plugin ios add` commands to add mobile plugin functionality to existing projects.
|
package/Cargo.toml
CHANGED
|
@@ -11,8 +11,8 @@ openssl-vendored = ["tauri-cli/openssl-vendored"]
|
|
|
11
11
|
|
|
12
12
|
[dependencies]
|
|
13
13
|
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
|
|
14
|
-
napi = { version = "2.
|
|
15
|
-
napi-derive = "2.
|
|
14
|
+
napi = { version = "2.12", default-features = false, features = ["napi4"] }
|
|
15
|
+
napi-derive = "2.12"
|
|
16
16
|
tauri-cli = { path = ".." }
|
|
17
17
|
log = "0.4.17"
|
|
18
18
|
|
package/index.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
// SPDX-License-Identifier: MIT
|
|
4
|
-
|
|
5
1
|
const { existsSync, readFileSync } = require('fs')
|
|
6
2
|
const { join } = require('path')
|
|
7
3
|
|
|
@@ -15,7 +11,8 @@ function isMusl() {
|
|
|
15
11
|
// For Node 10
|
|
16
12
|
if (!process.report || typeof process.report.getReport !== 'function') {
|
|
17
13
|
try {
|
|
18
|
-
|
|
14
|
+
const lddPath = require('child_process').execSync('which ldd').toString().trim();
|
|
15
|
+
return readFileSync(lddPath, 'utf8').includes('musl')
|
|
19
16
|
} catch (e) {
|
|
20
17
|
return true
|
|
21
18
|
}
|
|
@@ -105,6 +102,15 @@ switch (platform) {
|
|
|
105
102
|
}
|
|
106
103
|
break
|
|
107
104
|
case 'darwin':
|
|
105
|
+
localFileExisted = existsSync(join(__dirname, 'cli.darwin-universal.node'))
|
|
106
|
+
try {
|
|
107
|
+
if (localFileExisted) {
|
|
108
|
+
nativeBinding = require('./cli.darwin-universal.node')
|
|
109
|
+
} else {
|
|
110
|
+
nativeBinding = require('@tauri-apps/cli-darwin-universal')
|
|
111
|
+
}
|
|
112
|
+
break
|
|
113
|
+
} catch {}
|
|
108
114
|
switch (arch) {
|
|
109
115
|
case 'x64':
|
|
110
116
|
localFileExisted = existsSync(join(__dirname, 'cli.darwin-x64.node'))
|
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.5",
|
|
4
4
|
"description": "Command line interface for building Tauri apps",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "opencollective",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@napi-rs/cli": "2.
|
|
40
|
+
"@napi-rs/cli": "2.15.1",
|
|
41
41
|
"cross-env": "7.0.3",
|
|
42
42
|
"cross-spawn": "7.0.3",
|
|
43
43
|
"fs-extra": "11.1.0",
|
|
@@ -67,14 +67,14 @@
|
|
|
67
67
|
"format:check": "prettier --check ./package.json ./tauri.js"
|
|
68
68
|
},
|
|
69
69
|
"optionalDependencies": {
|
|
70
|
-
"@tauri-apps/cli-win32-x64-msvc": "2.0.0-alpha.
|
|
71
|
-
"@tauri-apps/cli-darwin-x64": "2.0.0-alpha.
|
|
72
|
-
"@tauri-apps/cli-linux-x64-gnu": "2.0.0-alpha.
|
|
73
|
-
"@tauri-apps/cli-darwin-arm64": "2.0.0-alpha.
|
|
74
|
-
"@tauri-apps/cli-linux-arm64-gnu": "2.0.0-alpha.
|
|
75
|
-
"@tauri-apps/cli-linux-arm64-musl": "2.0.0-alpha.
|
|
76
|
-
"@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-alpha.
|
|
77
|
-
"@tauri-apps/cli-linux-x64-musl": "2.0.0-alpha.
|
|
78
|
-
"@tauri-apps/cli-win32-ia32-msvc": "2.0.0-alpha.
|
|
70
|
+
"@tauri-apps/cli-win32-x64-msvc": "2.0.0-alpha.5",
|
|
71
|
+
"@tauri-apps/cli-darwin-x64": "2.0.0-alpha.5",
|
|
72
|
+
"@tauri-apps/cli-linux-x64-gnu": "2.0.0-alpha.5",
|
|
73
|
+
"@tauri-apps/cli-darwin-arm64": "2.0.0-alpha.5",
|
|
74
|
+
"@tauri-apps/cli-linux-arm64-gnu": "2.0.0-alpha.5",
|
|
75
|
+
"@tauri-apps/cli-linux-arm64-musl": "2.0.0-alpha.5",
|
|
76
|
+
"@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-alpha.5",
|
|
77
|
+
"@tauri-apps/cli-linux-x64-musl": "2.0.0-alpha.5",
|
|
78
|
+
"@tauri-apps/cli-win32-ia32-msvc": "2.0.0-alpha.5"
|
|
79
79
|
}
|
|
80
80
|
}
|