@tauri-apps/cli 2.0.0-alpha.3 → 2.0.0-alpha.4

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,14 @@
1
1
  # Changelog
2
2
 
3
+ ## \[2.0.0-alpha.4]
4
+
5
+ - Fix android project build crashing when using `pnpm` caused by extra `--`.
6
+ - [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
7
+ - Fixes the Android build gradle plugin implementation on Windows.
8
+ - [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
9
+ - Update `napi-rs` dependencies to latest to fix CLI hanging up forever.
10
+ - [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
11
+
3
12
  ## \[2.0.0-alpha.3]
4
13
 
5
14
  - 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.10", default-features = false, features = ["napi4"] }
15
- napi-derive = "2.10"
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
- return readFileSync('/usr/bin/ldd', 'utf8').includes('musl')
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",
3
+ "version": "2.0.0-alpha.4",
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.14.4",
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.3",
71
- "@tauri-apps/cli-darwin-x64": "2.0.0-alpha.3",
72
- "@tauri-apps/cli-linux-x64-gnu": "2.0.0-alpha.3",
73
- "@tauri-apps/cli-darwin-arm64": "2.0.0-alpha.3",
74
- "@tauri-apps/cli-linux-arm64-gnu": "2.0.0-alpha.3",
75
- "@tauri-apps/cli-linux-arm64-musl": "2.0.0-alpha.3",
76
- "@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-alpha.3",
77
- "@tauri-apps/cli-linux-x64-musl": "2.0.0-alpha.3",
78
- "@tauri-apps/cli-win32-ia32-msvc": "2.0.0-alpha.3"
70
+ "@tauri-apps/cli-win32-x64-msvc": "2.0.0-alpha.4",
71
+ "@tauri-apps/cli-darwin-x64": "2.0.0-alpha.4",
72
+ "@tauri-apps/cli-linux-x64-gnu": "2.0.0-alpha.4",
73
+ "@tauri-apps/cli-darwin-arm64": "2.0.0-alpha.4",
74
+ "@tauri-apps/cli-linux-arm64-gnu": "2.0.0-alpha.4",
75
+ "@tauri-apps/cli-linux-arm64-musl": "2.0.0-alpha.4",
76
+ "@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-alpha.4",
77
+ "@tauri-apps/cli-linux-x64-musl": "2.0.0-alpha.4",
78
+ "@tauri-apps/cli-win32-ia32-msvc": "2.0.0-alpha.4"
79
79
  }
80
80
  }