forked from extern/nushell
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:
parent
488f81d012
commit
6a1e504a50
@ -5,28 +5,19 @@ echo "Building nushell (nu) with --features=extra and all the plugins"
|
||||
echo "---------------------------------------------------------------"
|
||||
echo ""
|
||||
|
||||
NU_PLUGINS=(
|
||||
'nu_plugin_example'
|
||||
'nu_plugin_gstat'
|
||||
'nu_plugin_inc'
|
||||
'nu_plugin_query'
|
||||
)
|
||||
|
||||
echo "Building nushell"
|
||||
cargo build --features=extra
|
||||
echo ""
|
||||
|
||||
cd crates/nu_plugin_example
|
||||
echo "Building nu_plugin_example"
|
||||
cargo build
|
||||
echo ""
|
||||
|
||||
cd ../../crates/nu_plugin_gstat
|
||||
echo "Building nu_plugin_gstat"
|
||||
cargo build
|
||||
echo ""
|
||||
|
||||
cd ../../crates/nu_plugin_inc
|
||||
echo "Building nu_plugin_inc"
|
||||
cargo build
|
||||
echo ""
|
||||
|
||||
cd ../../crates/nu_plugin_query
|
||||
echo "Building nu_plugin_query"
|
||||
cargo build
|
||||
echo ""
|
||||
|
||||
cd ../..
|
||||
for plugin in "${NU_PLUGINS[@]}"
|
||||
do
|
||||
echo '' && cd crates/$plugin
|
||||
echo "Building $plugin..."
|
||||
echo "-----------------------------"
|
||||
cargo build && cd ../..
|
||||
done
|
||||
|
29
install-all.ps1
Normal file
29
install-all.ps1
Normal file
@ -0,0 +1,29 @@
|
||||
|
||||
# Usage: Just run `powershell install-all.ps1` in nushell root directory
|
||||
|
||||
Write-Output "-----------------------------------------------------------------"
|
||||
Write-Output "Installing nushell (nu) with --features=extra and all the plugins"
|
||||
Write-Output "-----------------------------------------------------------------"
|
||||
Write-Output ""
|
||||
|
||||
Write-Output "Install nushell from local..."
|
||||
Write-Output "----------------------------------------------"
|
||||
cargo install --path . --features=extra
|
||||
|
||||
$NU_PLUGINS=@(
|
||||
'nu_plugin_example',
|
||||
'nu_plugin_gstat',
|
||||
'nu_plugin_inc',
|
||||
'nu_plugin_query'
|
||||
)
|
||||
|
||||
foreach( $plugin in $NU_PLUGINS) {
|
||||
Write-Output ''
|
||||
Write-Output "----------------------------------------------"
|
||||
Write-Output "Install plugin $plugin from local..."
|
||||
Write-Output "----------------------------------------------"
|
||||
Set-Location crates/$plugin
|
||||
cargo install --path .
|
||||
Set-Location ../../
|
||||
}
|
||||
|
@ -1,5 +1,14 @@
|
||||
#!/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=(
|
||||
@ -8,6 +17,7 @@ NU_PLUGINS=(
|
||||
'nu_plugin_query'
|
||||
'nu_plugin_example'
|
||||
)
|
||||
|
||||
for plugin in "${NU_PLUGINS[@]}"
|
||||
do
|
||||
echo ''
|
Loading…
Reference in New Issue
Block a user