mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-18 08:02:13 +03:00
01f6aa3405
* build: migrate repo to use `pnpm` as the pacakge manager * corepack enable * update lock file * format files * format .github * fix audit js * wrap in quotes * --frozen-lockfile * simplify packageManager field * lockfile * remove cache from audit workflow
30 lines
783 B
Bash
Executable File
30 lines
783 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Copyright 2019-2024 Tauri Programme within The Commons Conservancy
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
echo "Building API definitions..."
|
|
cd tooling/api
|
|
pnpm i && pnpm build
|
|
cd ../..
|
|
|
|
echo "Building the Tauri Rust CLI..."
|
|
cd tooling/cli
|
|
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/node
|
|
pnpm i && pnpm build && pnpm link
|
|
cd ../../..
|
|
echo "Tauri Node.js CLI installed. use `pnpm link @tauri-apps/cli` and run it with '$ pnpm tauri [COMMAND]'."
|
|
break;;
|
|
No ) break;;
|
|
esac
|
|
done
|