setup.sh 778 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env bash
  2. # Copyright 2019-2023 Tauri Programme within The Commons Conservancy
  3. # SPDX-License-Identifier: Apache-2.0
  4. # SPDX-License-Identifier: MIT
  5. echo "Building API definitions..."
  6. cd tooling/api
  7. yarn && yarn build
  8. cd ../..
  9. echo "Building the Tauri Rust CLI..."
  10. cd tooling/cli
  11. cargo install --path .
  12. cd ../..
  13. echo "Tauri Rust CLI installed. Run it with '$ cargo tauri [COMMAND]'."
  14. echo "Do you want to install the Node.js CLI?"
  15. select yn in "Yes" "No"; do
  16. case $yn in
  17. Yes )
  18. cd tooling/cli/node
  19. yarn && yarn build && yarn link
  20. cd ../../..
  21. echo "Tauri Node.js CLI installed. use `yarn link @tauri-apps/cli` and run it with '$ yarn tauri [COMMAND]'."
  22. break;;
  23. No ) break;;
  24. esac
  25. done