2019-11-06 03:12:01 +03:00
|
|
|
RED=`tput setaf 1`
|
|
|
|
GREEN=`tput setaf 2`
|
|
|
|
NC=`tput sgr0`
|
|
|
|
|
2019-05-08 06:38:49 +03:00
|
|
|
echo ""
|
2020-01-25 01:12:14 +03:00
|
|
|
echo "----------- Compiling vscode-dotnet-runtime-library -----------"
|
2019-05-08 06:38:49 +03:00
|
|
|
echo ""
|
2020-01-25 01:12:14 +03:00
|
|
|
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 ""
|
2019-11-06 03:12:01 +03:00
|
|
|
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 ""
|
2020-01-25 01:12:14 +03:00
|
|
|
echo "----------- Compiling vscode-dotnet-runtime-extension -----------"
|
2019-05-08 06:38:49 +03:00
|
|
|
echo ""
|
2020-01-25 01:12:14 +03:00
|
|
|
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 ""
|
2019-11-06 03:12:01 +03:00
|
|
|
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 ""
|
2019-11-06 03:12:01 +03:00
|
|
|
echo "${RED}Build failed!${NC}"
|
2019-05-08 06:30:20 +03:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
popd
|
|
|
|
|
|
|
|
echo ""
|
2019-11-06 03:12:01 +03:00
|
|
|
echo "${GREEN}Build succeeded!${NC}"
|
2019-07-31 19:56:56 +03:00
|
|
|
exit 0
|