From 9c7b2bd877b6e400d4163f622c8e69343a0cad94 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 13 Dec 2023 18:16:57 +0000 Subject: [PATCH] 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. --- contrib/osx/make_osx.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/osx/make_osx.sh b/contrib/osx/make_osx.sh index b84dd1a3d..bc8b17f92 100755 --- a/contrib/osx/make_osx.sh +++ b/contrib/osx/make_osx.sh @@ -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