From c16dc8754d0edf4d36ca315b7f1f09ed81fcc291 Mon Sep 17 00:00:00 2001 From: deepend Date: Thu, 19 Feb 2026 10:30:30 -0700 Subject: [PATCH] Updated the macOS bundle script to stop failing when the repo has no tags by introducing ARCHIVE_VERSION from git describe --tags --always (with stderr suppressed). Added a fallback so that if git metadata is unavailable, the archive version falls back to VERSION_STRING instead of leaving an empty suffix in the zip name. Switched the final zip naming to use ARCHIVE_VERSION, avoiding ZoiteChat-.app.zip outputs and fatal git describe errors. --- osx/makebundle.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/osx/makebundle.sh b/osx/makebundle.sh index 9f2cb967..b8a79214 100755 --- a/osx/makebundle.sh +++ b/osx/makebundle.sh @@ -123,4 +123,8 @@ if command -v file >/dev/null 2>&1; then fi echo "Compressing bundle" -zip -9rXq "./ZoiteChat-$(git describe --tags).app.zip" "./$APP_NAME" +ARCHIVE_VERSION="$(git describe --tags --always 2>/dev/null || true)" +if [ -z "$ARCHIVE_VERSION" ]; then + ARCHIVE_VERSION="$VERSION_STRING" +fi +zip -9rXq "./ZoiteChat-$ARCHIVE_VERSION.app.zip" "./$APP_NAME"