mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-29 13:03:09 +03:00
29 lines
735 B
Bash
Executable File
29 lines
735 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright 2019-2021 Tauri Programme within The Commons Conservancy
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
echo "Building API definitions..."
|
|
cd tooling/api
|
|
yarn && yarn build
|
|
cd ../..
|
|
|
|
echo "Building the Tauri Rust CLI..."
|
|
cd tooling/cli.rs
|
|
cargo install --path .
|
|
cd ../..
|
|
echo "Tauri Rust CLI installed. Run it with '$ cargo tauri [COMMAND]'."
|
|
|
|
echo "Do you want to install the Node.js CLI?"
|
|
select yn in "Yes" "No"; do
|
|
case $yn in
|
|
Yes )
|
|
cd tooling/cli.js
|
|
yarn && yarn build && yarn link
|
|
cd ../..
|
|
echo "Tauri Node.js CLI installed. Run it with '$ tauri [COMMAND]'."
|
|
break;;
|
|
No ) break;;
|
|
esac
|
|
done
|