vscode-dotnet-runtime/build.sh

56 строки
852 B
Bash
Исходник Обычный вид История

RED=`tput setaf 1`
GREEN=`tput setaf 2`
NC=`tput sgr0`
2019-05-08 06:38:49 +03:00
echo ""
echo "----------- Compiling vscode-dotnet-runtime-library -----------"
2019-05-08 06:38:49 +03:00
echo ""
pushd vscode-dotnet-runtime-library
2019-05-08 06:30:20 +03:00
rm -rf node_modules
npm install
npm run compile
2019-05-08 06:34:39 +03:00
if [ $? -ne 0 ];
2019-05-08 06:30:20 +03:00
then
2019-05-08 06:38:49 +03:00
echo ""
echo "${RED}Build failed!${NC}"
2019-05-08 06:30:20 +03:00
exit 1
fi
popd
2019-05-08 06:38:49 +03:00
echo ""
echo "----------- Compiling vscode-dotnet-runtime-extension -----------"
2019-05-08 06:38:49 +03:00
echo ""
pushd vscode-dotnet-runtime-extension
2019-05-08 06:30:20 +03:00
rm -rf node_modules
npm install
npm run compile
2019-05-08 06:34:39 +03:00
if [ $? -ne 0 ];
2019-05-08 06:30:20 +03:00
then
2019-05-08 06:38:49 +03:00
echo ""
echo "${RED}Build failed!${NC}"
2019-05-08 06:30:20 +03:00
exit 1
fi
popd
2019-05-08 06:38:49 +03:00
echo ""
echo "----------- Compiling sample -----------"
echo ""
2019-05-08 06:30:20 +03:00
pushd sample
rm -rf node_modules
npm install
npm run compile
2019-05-08 06:34:39 +03:00
if [ $? -ne 0 ];
2019-05-08 06:30:20 +03:00
then
2019-05-08 06:38:49 +03:00
echo ""
echo "${RED}Build failed!${NC}"
2019-05-08 06:30:20 +03:00
exit 1
fi
popd
echo ""
echo "${GREEN}Build succeeded!${NC}"
2019-07-31 19:56:56 +03:00
exit 0