From c3568e474466e34a810d12d3ffee44145eb0c28a Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sat, 18 Apr 2020 22:13:36 -0400 Subject: [PATCH] Enable minor & build numbers > 9. --- platform-darwin/Scripts/updatePlist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform-darwin/Scripts/updatePlist b/platform-darwin/Scripts/updatePlist index cc559e53..5e8da32a 100755 --- a/platform-darwin/Scripts/updatePlist +++ b/platform-darwin/Scripts/updatePlist @@ -46,9 +46,10 @@ esac description=$(git describe --always --dirty --long --match "*-$platform*") version=${description%-g*} build=${version##*-} version=${version%-$build} version=${version//-$platform/} version=${version//-/.} commit=${description##*-g} +IFS=. read major minor build <<< "$version" addPlistWithKey GITDescription string "$description" -setPlistWithKey CFBundleVersion "$(hr "${version%%.*}" 14).${version#*.}" +setPlistWithKey CFBundleVersion "$(hr "$major" 14)$(printf '%02d' "$minor")$(printf '%02d' "$build")" setPlistWithKey CFBundleShortVersionString "$version" setSettingWithTitle "Build" "$commit"