Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tauri-apps/cli

Package Overview
Dependencies
Maintainers
5
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tauri-apps/cli - npm Package Compare versions

Comparing version 2.0.0-rc.7 to 2.0.0-rc.8

config.schema.json

8

index.d.ts

@@ -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

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc