build_tools/make_macos_pkg.sh: fix inconsistent version computation

make_tarball.sh and others do it differently.

(cherry picked from commit c771ff06d4)
This commit is contained in:
Johannes Altmanninger
2025-09-22 17:09:13 +02:00
parent 78c9ab29cd
commit 199316f1a3

View File

@@ -53,13 +53,7 @@ if [ -n "$NOTARIZE" ] && [ -z "$API_KEY_FILE" ]; then
usage
fi
VERSION=$(git describe --always --dirty 2>/dev/null)
if test -z "$VERSION" ; then
echo "Could not get version from git"
if test -f version; then
VERSION=$(cat version)
fi
fi
VERSION=$(build_tools/git_version_gen.sh --stdout 2>/dev/null)
echo "Version is $VERSION"