Add update feature to cargo for easier rebuild
This commit is contained in:
parent
5a4dbc170e
commit
df44294e17
|
@ -9,6 +9,7 @@ IF NOT "%~1" == "" (
|
||||||
|
|
||||||
mkdir bin\
|
mkdir bin\
|
||||||
cd src\Tools\
|
cd src\Tools\
|
||||||
|
call build_all.bat update
|
||||||
call build_all.bat %build_type%
|
call build_all.bat %build_type%
|
||||||
|
|
||||||
cd ..\Library\
|
cd ..\Library\
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
{
|
{
|
||||||
"id": "cargo cmd",
|
"id": "cargo cmd",
|
||||||
"type":"pickString",
|
"type":"pickString",
|
||||||
"options": ["build", "check", "clean", "run"],
|
"options": ["build", "check", "update", "clean", "run"],
|
||||||
"default": "build",
|
"default": "build",
|
||||||
"description": "cargo command to run"
|
"description": "cargo command to run"
|
||||||
},
|
},
|
||||||
|
|
|
@ -53,4 +53,11 @@ IF %2 == clean (
|
||||||
exit /B %ERRORLEVEL%
|
exit /B %ERRORLEVEL%
|
||||||
)
|
)
|
||||||
|
|
||||||
|
IF %2 == update (
|
||||||
|
echo cargo update %1
|
||||||
|
%wsl%cargo update
|
||||||
|
|
||||||
|
exit /B %ERRORLEVEL%
|
||||||
|
)
|
||||||
|
|
||||||
echo "Unkown cargo command "%2" for project "%1"
|
echo "Unkown cargo command "%2" for project "%1"
|
Loading…
Reference in New Issue