summaryrefslogtreecommitdiff
path: root/scripts/build-all-windows.cmd
blob: b8a4c70ea25a82c8c6bc2b5a9dd2d52406e5a629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@echo off
echo -------------------------------------------------------------------
echo Building nushell (nu.exe) and all the plugins
echo -------------------------------------------------------------------
echo.

echo Building nushell.exe
cargo build --locked
echo.

call :build crates\nu_plugin_example nu_plugin_example.exe
call :build ..\..\crates\nu_plugin_gstat nu_plugin_gstat.exe
call :build ..\..\crates\nu_plugin_inc nu_plugin_inc.exe
call :build ..\..\crates\nu_plugin_query nu_plugin_query.exe
call :build ..\..\crates\nu_plugin_custom_values nu_plugin_custom_values.exe

cd ..\..
exit /b 0

:build
    setlocal
    set "location=%~1"
    set "target=%~2"

    cd "%location%"
    echo Building %target%
    cargo build
    echo.
    endlocal
exit /b 0