tauri/.scripts/setup.ps1
Noah Klayman 1d66d00506
chore: improve contributor experience (#1264)
* chore: update install commands in setup scripts

* chore(examples/api): add `tauri` script

* chore(contributing.md): update to match new developments

* fix(scripts/setup): typo

* chore(examples): replace communication with helloworld

* remove deno submodule as it was added on accident

* fix(examples/helloword): add __tauri.js to .gitignore

* fix(examples): helloworld example with `cargo run`, change dev path

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-02-21 08:48:08 -08:00

26 lines
747 B
PowerShell

#!/usr/bin/env pwsh
echo "Building API definitions..."
cd api
yarn; yarn build
cd ..
echo "Installing the Tauri Rust CLI..."
cd cli\core
cargo install --path .
cd ..\..
echo "Tauri Rust CLI installed. Run it with '$ cargo tauri [COMMAND]'."
$yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes"
$no = New-Object System.Management.Automation.Host.ChoiceDescription "&No"
$options = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no)
$result = $host.ui.PromptForChoice("Node.js CLI", "Do you want to install the Node.js CLI?", $options, 1)
switch ($result) {
0{
cd cli\tauri.js
yarn; yarn build; yarn link
cd ..\..
echo "Tauri Node.js CLI installed. Run it with '$ tauri [COMMAND]'"
}
}