1
0

mac build: call "git describe" without "--dirty"

as we dirty the git clone ourselves, well the locale submodule, when we rm the .po files
This commit is contained in:
SomberNight
2025-06-11 16:37:08 +00:00
parent 1d7a5cbe16
commit 376d5eb6e0
2 changed files with 4 additions and 2 deletions

View File

@@ -208,7 +208,8 @@ find "$VENV_DIR/lib/python$PY_VER_MAJOR/site-packages/" -type f -name '*.so' -pr
info "Faking timestamps..."
find . -exec touch -t '200101220000' {} + || true
VERSION=$(git describe --tags --dirty --always)
# note: no --dirty, as we have dirtied electrum/locale/ ourselves.
VERSION=$(git describe --tags --always)
info "Building binary"
ELECTRUM_VERSION=$VERSION pyinstaller --noconfirm --clean contrib/osx/pyinstaller.spec || fail "Could not build binary"

View File

@@ -59,7 +59,8 @@ function DoCodeSignMaybe { # ARGS: infoName fileOrDirName
codesign -f -v $deep -s "$CODESIGN_CERT" $hardened_arg "$file" || fail "Could not code sign ${infoName}"
}
VERSION=$(git describe --tags --dirty --always)
# note: no --dirty, as we have dirtied electrum/locale/ ourselves.
VERSION=$(git describe --tags --always)
DoCodeSignMaybe "app bundle" "dist/${PACKAGE}.app"