Update build & install sh scripts, add install script for windows (#4736)

* Update build & install sh scripts, add install script for windows

* Rename install scripts [ci skip]
This commit is contained in:
Justin Ma
2022-03-05 19:41:28 +08:00
committed by GitHub
parent 488f81d012
commit 6a1e504a50
3 changed files with 53 additions and 23 deletions

28
install-all.sh Normal file
View File

@@ -0,0 +1,28 @@
#!/bin/sh
# Usage: Just run `sh install-all.sh` in nushell root directory
echo "-----------------------------------------------------------------"
echo "Installing nushell (nu) with --features=extra and all the plugins"
echo "-----------------------------------------------------------------"
echo ""
echo "Install nushell from local..."
echo "----------------------------------------------"
cargo install --path . --features=extra
NU_PLUGINS=(
'nu_plugin_inc'
'nu_plugin_gstat'
'nu_plugin_query'
'nu_plugin_example'
)
for plugin in "${NU_PLUGINS[@]}"
do
echo ''
echo "----------------------------------------------"
echo "Install plugin $plugin from local..."
echo "----------------------------------------------"
cd crates/$plugin && cargo install --path . && cd ../../
done