vscode-dotnet-runtime/build.sh

90 строки
1.7 KiB
Bash
Исходник Обычный вид История

RED=`tput setaf 1`
GREEN=`tput setaf 2`
NC=`tput sgr0`
2020-05-12 01:24:18 +03:00
echo ""
echo "----------- Bundling Install Scripts -----------"
echo ""
2020-05-13 22:58:12 +03:00
curl https://dot.net/v1/dotnet-install.ps1 --retry 2 -o "./vscode-dotnet-runtime-library/install scripts/dotnet-install.ps1"
curl https://dot.net/v1/dotnet-install.sh --retry 2 -o "./vscode-dotnet-runtime-library/install scripts/dotnet-install.sh"
2020-05-12 01:24:18 +03:00
if [ $? -eq 0 ];
then
echo ""
echo "${GREEN}Bundled install scripts${NC}"
else
echo ""
echo "${RED}Unable to bundle install scripts${NC}"
fi
2020-05-13 22:58:12 +03:00
chmod +x "./vscode-dotnet-runtime-library/install scripts/dotnet-install.ps1"
chmod +x "./vscode-dotnet-runtime-library/install scripts/dotnet-install.sh"
2020-05-12 01:24:18 +03:00
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 ci
2019-05-08 06:30:20 +03:00
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 "----------- Compiling vscode-dotnet-runtime-extension -----------"
echo ""
pushd vscode-dotnet-runtime-extension
rm -rf node_modules
npm ci
npm run compile
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}"
exit 1
2019-05-08 06:30:20 +03:00
fi
popd
2019-05-08 06:30:20 +03:00
2021-02-09 20:37:28 +03:00
echo ""
echo "----------- Compiling vscode-dotnet-sdk-extension -----------"
echo ""
pushd vscode-dotnet-sdk-extension
rm -rf node_modules
npm ci
2021-02-09 20:37:28 +03:00
npm run compile
if [ $? -ne 0 ];
then
echo ""
echo "${RED}Build failed!${NC}"
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 ci
2019-05-08 06:30:20 +03:00
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
/bin/bash ./mock-webpack.sh
2019-05-08 06:30:20 +03:00
echo ""
echo "${GREEN}Build succeeded!${NC}"
2019-07-31 19:56:56 +03:00
exit 0