@tauri-apps/cli
Advanced tools
Comparing version 2.0.0-rc.7 to 2.0.0-rc.8
@@ -10,7 +10,3 @@ // Copyright 2019-2024 Tauri Programme within The Commons Conservancy | ||
export function run( | ||
args: Array<string>, | ||
binName: string | undefined | null, | ||
callback: (...args: any[]) => any | ||
): void | ||
export function logError(error: string): void | ||
export declare function run(args: Array<string>, binName: string | undefined | null, callback: (...args: any[]) => any): void | ||
export declare function logError(error: string): void |
77
index.js
@@ -24,6 +24,3 @@ // Copyright 2019-2024 Tauri Programme within The Commons Conservancy | ||
try { | ||
const lddPath = require('child_process') | ||
.execSync('which ldd') | ||
.toString() | ||
.trim() | ||
const lddPath = require('child_process').execSync('which ldd').toString().trim() | ||
return readFileSync(lddPath, 'utf8').includes('musl') | ||
@@ -55,5 +52,3 @@ } catch (e) { | ||
case 'arm': | ||
localFileExisted = existsSync( | ||
join(__dirname, 'cli.android-arm-eabi.node') | ||
) | ||
localFileExisted = existsSync(join(__dirname, 'cli.android-arm-eabi.node')) | ||
try { | ||
@@ -145,3 +140,5 @@ if (localFileExisted) { | ||
case 'arm64': | ||
localFileExisted = existsSync(join(__dirname, 'cli.darwin-arm64.node')) | ||
localFileExisted = existsSync( | ||
join(__dirname, 'cli.darwin-arm64.node') | ||
) | ||
try { | ||
@@ -237,10 +234,68 @@ if (localFileExisted) { | ||
case 'arm': | ||
if (isMusl()) { | ||
localFileExisted = existsSync( | ||
join(__dirname, 'cli.linux-arm-musleabihf.node') | ||
) | ||
try { | ||
if (localFileExisted) { | ||
nativeBinding = require('./cli.linux-arm-musleabihf.node') | ||
} else { | ||
nativeBinding = require('@tauri-apps/cli-linux-arm-musleabihf') | ||
} | ||
} catch (e) { | ||
loadError = e | ||
} | ||
} else { | ||
localFileExisted = existsSync( | ||
join(__dirname, 'cli.linux-arm-gnueabihf.node') | ||
) | ||
try { | ||
if (localFileExisted) { | ||
nativeBinding = require('./cli.linux-arm-gnueabihf.node') | ||
} else { | ||
nativeBinding = require('@tauri-apps/cli-linux-arm-gnueabihf') | ||
} | ||
} catch (e) { | ||
loadError = e | ||
} | ||
} | ||
break | ||
case 'riscv64': | ||
if (isMusl()) { | ||
localFileExisted = existsSync( | ||
join(__dirname, 'cli.linux-riscv64-musl.node') | ||
) | ||
try { | ||
if (localFileExisted) { | ||
nativeBinding = require('./cli.linux-riscv64-musl.node') | ||
} else { | ||
nativeBinding = require('@tauri-apps/cli-linux-riscv64-musl') | ||
} | ||
} catch (e) { | ||
loadError = e | ||
} | ||
} else { | ||
localFileExisted = existsSync( | ||
join(__dirname, 'cli.linux-riscv64-gnu.node') | ||
) | ||
try { | ||
if (localFileExisted) { | ||
nativeBinding = require('./cli.linux-riscv64-gnu.node') | ||
} else { | ||
nativeBinding = require('@tauri-apps/cli-linux-riscv64-gnu') | ||
} | ||
} catch (e) { | ||
loadError = e | ||
} | ||
} | ||
break | ||
case 's390x': | ||
localFileExisted = existsSync( | ||
join(__dirname, 'cli.linux-arm-gnueabihf.node') | ||
join(__dirname, 'cli.linux-s390x-gnu.node') | ||
) | ||
try { | ||
if (localFileExisted) { | ||
nativeBinding = require('./cli.linux-arm-gnueabihf.node') | ||
nativeBinding = require('./cli.linux-s390x-gnu.node') | ||
} else { | ||
nativeBinding = require('@tauri-apps/cli-linux-arm-gnueabihf') | ||
nativeBinding = require('@tauri-apps/cli-linux-s390x-gnu') | ||
} | ||
@@ -247,0 +302,0 @@ } catch (e) { |
{ | ||
"name": "@tauri-apps/cli", | ||
"version": "2.0.0-rc.7", | ||
"version": "2.0.0-rc.8", | ||
"description": "Command line interface for building Tauri apps", | ||
@@ -60,3 +60,3 @@ "funding": { | ||
"prepublishOnly": "napi prepublish -t npm --gh-release-id $RELEASE_ID", | ||
"prepack": "cp ../schema.json .", | ||
"prepack": "cp ../../crates/tauri-schema-generator/schemas/config.schema.json .", | ||
"test": "jest --runInBand --forceExit --no-cache", | ||
@@ -67,13 +67,13 @@ "version": "napi version", | ||
"optionalDependencies": { | ||
"@tauri-apps/cli-win32-x64-msvc": "2.0.0-rc.7", | ||
"@tauri-apps/cli-darwin-x64": "2.0.0-rc.7", | ||
"@tauri-apps/cli-linux-x64-gnu": "2.0.0-rc.7", | ||
"@tauri-apps/cli-darwin-arm64": "2.0.0-rc.7", | ||
"@tauri-apps/cli-linux-arm64-gnu": "2.0.0-rc.7", | ||
"@tauri-apps/cli-linux-arm64-musl": "2.0.0-rc.7", | ||
"@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-rc.7", | ||
"@tauri-apps/cli-linux-x64-musl": "2.0.0-rc.7", | ||
"@tauri-apps/cli-win32-ia32-msvc": "2.0.0-rc.7", | ||
"@tauri-apps/cli-win32-arm64-msvc": "2.0.0-rc.7" | ||
"@tauri-apps/cli-win32-x64-msvc": "2.0.0-rc.8", | ||
"@tauri-apps/cli-darwin-x64": "2.0.0-rc.8", | ||
"@tauri-apps/cli-linux-x64-gnu": "2.0.0-rc.8", | ||
"@tauri-apps/cli-darwin-arm64": "2.0.0-rc.8", | ||
"@tauri-apps/cli-linux-arm64-gnu": "2.0.0-rc.8", | ||
"@tauri-apps/cli-linux-arm64-musl": "2.0.0-rc.8", | ||
"@tauri-apps/cli-linux-arm-gnueabihf": "2.0.0-rc.8", | ||
"@tauri-apps/cli-linux-x64-musl": "2.0.0-rc.8", | ||
"@tauri-apps/cli-win32-ia32-msvc": "2.0.0-rc.8", | ||
"@tauri-apps/cli-win32-arm64-msvc": "2.0.0-rc.8" | ||
} | ||
} |
@@ -26,3 +26,3 @@ # @tauri-apps/cli | ||
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 `pnpm tauri dev`. For the most part it is a wrapper around [tauri-cli](https://github.com/tauri-apps/tauri/blob/dev/tooling/cli). | ||
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 `pnpm tauri dev`. For the most part it is a wrapper around [tauri-cli](https://github.com/tauri-apps/tauri/blob/dev/crates/tauri-cli). | ||
@@ -29,0 +29,0 @@ 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. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
263240
3463
2