tmac build: call `git describe` after `git submodule update` - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 756d2eb004fde3d0eff4669b35e6f1340dcb09af DIR parent 32ffc9e9a415f0709f8a2e4595c5de7c1ebbb52b HTML Author: SomberNight <somber.night@protonmail.com> Date: Sat, 21 Nov 2020 19:29:29 +0100 mac build: call `git describe` after `git submodule update` otherwise it could be that `git describe` will say "dirty" but the binary will not actually be dirty as it just needed `git submodule update` Diffstat: M contrib/osx/make_osx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/contrib/osx/make_osx b/contrib/osx/make_osx t@@ -19,7 +19,6 @@ ROOT_FOLDER="$CONTRIB/.." src_dir=$(dirname "$0") cd $src_dir/../.. -VERSION=`git describe --tags --dirty --always` which brew > /dev/null 2>&1 || fail "Please install brew from https://brew.sh/ to continue" which xcodebuild > /dev/null 2>&1 || fail "Please install Xcode and xcode command line tools to continue" t@@ -156,6 +155,8 @@ for d in ~/Library/Python/ ~/.pyenv .; do popd done +VERSION=`git describe --tags --dirty --always` + info "Building binary" APP_SIGN="$CODESIGN_CERT" pyinstaller --noconfirm --ascii --clean --name $VERSION contrib/osx/osx.spec || fail "Could not build binary"