wine build: "exit 1" on hash/sig failure
This commit is contained in:
parent
44bf80d291
commit
a6fe73ad72
|
@ -28,18 +28,18 @@ verify_signature() {
|
|||
return 0
|
||||
else
|
||||
echo "$out" >&2
|
||||
exit 0
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
verify_hash() {
|
||||
local file=$1 expected_hash=$2 out=
|
||||
local file=$1 expected_hash=$2
|
||||
actual_hash=$(sha256sum $file | awk '{print $1}')
|
||||
if [ "$actual_hash" == "$expected_hash" ]; then
|
||||
return 0
|
||||
else
|
||||
echo "$file $actual_hash (unexpected hash)" >&2
|
||||
exit 0
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -117,4 +117,4 @@ cp libusb/MS32/dll/libusb-1.0.dll $WINEPREFIX/drive_c/python$PYTHON_VERSION/
|
|||
# add dlls needed for pyinstaller:
|
||||
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."
|
||||
|
|
Loading…
Reference in New Issue