tauri-deps.js 574 B

1234567891011121314151617181920212223242526
  1. // Copyright 2019-2021 Tauri Programme within The Commons Conservancy
  2. // SPDX-License-Identifier: Apache-2.0
  3. // SPDX-License-Identifier: MIT
  4. import {
  5. installDependencies,
  6. updateDependencies
  7. } from '../dist/api/dependency-manager.js'
  8. async function run() {
  9. const choice = process.argv[2]
  10. if (choice === 'install') {
  11. await installDependencies()
  12. } else if (choice === 'update') {
  13. await updateDependencies()
  14. } else {
  15. console.log(`
  16. Description
  17. Tauri dependency management script
  18. Usage
  19. $ tauri deps [install|update]
  20. `)
  21. }
  22. }
  23. run()