2021-04-11 01:09:09 +03:00
|
|
|
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2021-08-17 16:27:02 +03:00
|
|
|
import {
|
|
|
|
installDependencies,
|
|
|
|
updateDependencies
|
|
|
|
} from '../dist/api/dependency-manager.js'
|
2021-08-17 02:15:49 +03:00
|
|
|
|
2021-08-17 16:27:02 +03:00
|
|
|
async function run() {
|
2020-07-16 00:01:37 +03:00
|
|
|
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()
|