2019-11-06 03:12:01 +03:00
|
|
|
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 ""
|
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
|
2022-07-16 01:02:26 +03:00
|
|
|
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 ""
|
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
|
|
|
|
|
2023-08-11 02:47:45 +03:00
|
|
|
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 ""
|
2023-08-11 02:47:45 +03:00
|
|
|
echo "${RED}Build failed!${NC}"
|
|
|
|
exit 1
|
2019-05-08 06:30:20 +03:00
|
|
|
fi
|
2023-08-11 02:47:45 +03:00
|
|
|
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
|
2022-07-16 01:02:26 +03:00
|
|
|
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
|
2022-07-16 01:02:26 +03:00
|
|
|
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 ""
|
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
|
|
|
|
|
2023-08-11 02:47:45 +03:00
|
|
|
/bin/bash ./mock-webpack.sh
|
2023-08-07 23:54:36 +03:00
|
|
|
|
2019-05-08 06:30:20 +03:00
|
|
|
echo ""
|
2019-11-06 03:12:01 +03:00
|
|
|
echo "${GREEN}Build succeeded!${NC}"
|
2019-07-31 19:56:56 +03:00
|
|
|
exit 0
|