mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 16:00:18 +00:00
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.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user