build: improve error handling if windows deployment cannot find the proper tools

This commit is contained in:
mlangkabel
2020-03-30 12:02:55 +02:00
parent d13c21f6f3
commit f37716dc82
2 changed files with 9 additions and 2 deletions
+6 -1
View File
@@ -22,7 +22,12 @@ VERSION_STRING="${VERSION_STRING:2}"
echo "installer version is $VERSION_STRING"
PRODUCT_GUID=$(cmd.exe /c "uuidgen")
echo "$WIN_ARCH product guid is $PRODUCT_GUID"
if [ -z "$PRODUCT_GUID" ]; then
echo "Unable to generate GUID. Make sure to run this script from the Visual Studio command propmt. Aborting now."
exit 1
else
echo "$WIN_ARCH product guid is $PRODUCT_GUID"
fi
rm -rf build
mkdir build