2
0

Enable minor & build numbers > 9.

This commit is contained in:
Maarten Billemont 2020-04-18 22:13:36 -04:00
parent 0c921d4318
commit c3568e4744

View File

@ -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"