From 0e0f5dd80dea08c05dc102d1b2325d133790ec2c Mon Sep 17 00:00:00 2001 From: Beep6581 Date: Mon, 7 Mar 2016 17:59:21 +0100 Subject: [PATCH] Shortened DMG image filename, closes #3162 --- tools/osx/macosx_bundle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/osx/macosx_bundle.sh b/tools/osx/macosx_bundle.sh index 411b2d331..2803396ba 100644 --- a/tools/osx/macosx_bundle.sh +++ b/tools/osx/macosx_bundle.sh @@ -34,7 +34,7 @@ fi # update project version if test -x "$(which git)" -a -d "${PROJECT_SOURCE_DIR}/.git"; then # This is what the version ought to look like to be accurate in the git universe: - PROJECT_FULL_VERSION="$(git describe --tags --always)_$(git symbolic-ref --short -q HEAD)" + PROJECT_FULL_VERSION="$(git describe --tags --always | sed 's/-g.*//')_$(git symbolic-ref --short -q HEAD)" # outputs: 4.2-677-g904467b_master # but Apple requirements https://goo.gl/eWDQv6 state we should use this: PROJECT_VERSION="$(git describe --tags --always | sed -e 's/-g.*//' -e 's/-/./')"