1
0

mac build: log hash of .app for quick checking of build-repro

I think that hash should match between unsigned and release builds,
as the codesigning/notarisation is done right after.
This commit is contained in:
SomberNight
2023-12-13 18:16:57 +00:00
parent 5f309e95c8
commit 9c7b2bd877

View File

@@ -244,6 +244,9 @@ VERSION=$(git describe --tags --dirty --always)
info "Building binary"
ELECTRUM_VERSION=$VERSION pyinstaller --noconfirm --ascii --clean contrib/osx/osx.spec || fail "Could not build binary"
info "Finished building unsigned dist/${PACKAGE}.app. This hash should be reproducible:"
find "dist/${PACKAGE}.app" -type f -print0 | sort -z | xargs -0 shasum -a 256 | shasum -a 256
DoCodeSignMaybe "app bundle" "dist/${PACKAGE}.app"
if [ ! -z "$CODESIGN_CERT" ]; then