tauri/.scripts/setup.sh

25 lines
575 B
Bash
Raw Normal View History

2021-02-10 08:24:38 +03:00
#!/usr/bin/env sh
echo "Building API definitions..."
cd api
yarn && yarn build
cd ..
echo "Building the Tauri Rust CLI..."
2021-02-10 08:24:38 +03:00
cd cli/core
cargo install --path .
2021-02-10 08:24:38 +03:00
cd ../..
echo "Tauri Rust CLI installed. Run it with '$ cargo tauri [COMMAND]'."
2021-02-10 08:24:38 +03:00
echo "Do you want to install the Node.js CLI?"
2021-02-10 08:24:38 +03:00
select yn in "Yes" "No"; do
case $yn in
Yes )
cd cli/tauri.js
yarn && yarn build && yarn link
2021-02-10 08:24:38 +03:00
cd ../..
echo "Tauri Node.js CLI installed. Run it with '$ tauri [COMMAND]'."
2021-02-10 08:24:38 +03:00
break;;
No ) break;;
esac
done