mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-18 16:11:38 +03:00
23 lines
442 B
JavaScript
23 lines
442 B
JavaScript
async function run() {
|
|
const {
|
|
installDependencies,
|
|
updateDependencies
|
|
} = require('../dist/api/dependency-manager')
|
|
|
|
const choice = process.argv[2]
|
|
if (choice === 'install') {
|
|
await installDependencies()
|
|
} else if (choice === 'update') {
|
|
await updateDependencies()
|
|
} else {
|
|
console.log(`
|
|
Description
|
|
Tauri dependency management script
|
|
Usage
|
|
$ tauri deps [install|update]
|
|
`)
|
|
}
|
|
}
|
|
|
|
run()
|