MSIX packaging: check if assets have been built before packaging

This commit is contained in:
Moritz Bunkus 2021-05-22 13:38:24 +02:00
parent e27464d69e
commit 879959b35b
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -12,6 +12,11 @@ if [[ -z "$1" ]] || [[ ! -f "$1" ]]; then
exit 1
fi
if [[ ! -f assets/StoreLogo.png ]]; then
echo "Error: the assets don't seem to have been built."
exit 1
fi
makeappx="$(find '/c/Program Files (x86)/Windows Kits/10/bin/' -type f -iname makeappx.exe | grep -i /x64/ | sort | tail -n1)"
makepri="$(find '/c/Program Files (x86)/Windows Kits/10/bin/' -type f -iname makepri.exe | grep -i /x64/ | sort | tail -n1)"
signtool="$(find '/c/Program Files (x86)/Windows Kits/10/bin/' -type f -iname signtool.exe | grep -i /x64/ | sort | tail -n1)"