wine build: "exit 1" on hash/sig failure

This commit is contained in:
SomberNight 2018-02-25 18:54:34 +01:00
parent 44bf80d291
commit a6fe73ad72

View file

@ -28,18 +28,18 @@ verify_signature() {
return 0 return 0
else else
echo "$out" >&2 echo "$out" >&2
exit 0 exit 1
fi fi
} }
verify_hash() { verify_hash() {
local file=$1 expected_hash=$2 out= local file=$1 expected_hash=$2
actual_hash=$(sha256sum $file | awk '{print $1}') actual_hash=$(sha256sum $file | awk '{print $1}')
if [ "$actual_hash" == "$expected_hash" ]; then if [ "$actual_hash" == "$expected_hash" ]; then
return 0 return 0
else else
echo "$file $actual_hash (unexpected hash)" >&2 echo "$file $actual_hash (unexpected hash)" >&2
exit 0 exit 1
fi fi
} }
@ -117,4 +117,4 @@ cp libusb/MS32/dll/libusb-1.0.dll $WINEPREFIX/drive_c/python$PYTHON_VERSION/
# add dlls needed for pyinstaller: # add dlls needed for pyinstaller:
cp $WINEPREFIX/drive_c/python$PYTHON_VERSION/Lib/site-packages/PyQt5/Qt/bin/* $WINEPREFIX/drive_c/python$PYTHON_VERSION/ cp $WINEPREFIX/drive_c/python$PYTHON_VERSION/Lib/site-packages/PyQt5/Qt/bin/* $WINEPREFIX/drive_c/python$PYTHON_VERSION/
echo "Wine is configured. Please run prepare-pyinstaller.sh" echo "Wine is configured."