mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-18 08:02:13 +03:00
30 lines
837 B
Bash
30 lines
837 B
Bash
#!/usr/bin/env sh
|
|
echo "Building API definitions..."
|
|
cd api
|
|
yarn && yarn build
|
|
cd ..
|
|
|
|
echo "Building the Tauri CLI..."
|
|
cd cli/core
|
|
cargo build --release
|
|
cd ../..
|
|
|
|
alias rtauri="$(pwd)/cli/core/target/release/cargo-tauri.exe tauri"
|
|
echo "Added alias 'rtauri' for '$(pwd)/cli/core/target/release/cargo-tauri.exe tauri'"
|
|
echo "Tauri CLI installed. Run it with '$ rtauri [COMMAND]'."
|
|
|
|
echo "Do you want to use the Node.js CLI?"
|
|
select yn in "Yes" "No"; do
|
|
case $yn in
|
|
Yes )
|
|
cd cli/tauri.js
|
|
yarn && yarn build
|
|
cd ../..
|
|
alias stauri="$(pwd)/cli/tauri.js/bin/tauri.js"
|
|
echo "Added alias 'stauri' for '$(pwd)/cli/tauri.js/bin/tauri.js'"
|
|
echo "Tauri Node.js CLI installed. Run it with '$ stauri [COMMAND]'"
|
|
break;;
|
|
No ) break;;
|
|
esac
|
|
done
|