mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 07:51:27 +00:00
wine build: "exit 1" on hash/sig failure
This commit is contained in:
parent
44bf80d291
commit
a6fe73ad72
1 changed files with 4 additions and 4 deletions
|
@ -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."
|
||||||
|
|
Loading…
Add table
Reference in a new issue