Skip to content
This repository has been archived by the owner on Nov 14, 2017. It is now read-only.

Increment build number, per build #30

Closed
macmule opened this issue Nov 23, 2015 · 1 comment
Closed

Increment build number, per build #30

macmule opened this issue Nov 23, 2015 · 1 comment
Assignees
Milestone

Comments

@macmule
Copy link
Owner

macmule commented Nov 23, 2015

Pinched from AutoDMG & added to AutoCasperNBI, add to build phase:

Helps when testing & people are compiling own versions:

#
# Sets the version string to a monotonically increased string, based on
# the number of git commits.

set -o errexit
set -o nounset

VERSION=$(git --git-dir="$PROJECT_DIR/.git" --work-tree="$PROJECT_DIR" log | grep '^commit' | wc -l)
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $VERSION" "$TARGET_BUILD_DIR/$INFOPLIST_PATH"```
@macmule macmule self-assigned this Nov 23, 2015
@macmule macmule added this to the 2.20.11 milestone Nov 23, 2015
@macmule
Copy link
Owner Author

macmule commented Nov 23, 2015

Added to build phase in 2.20.11 branch

@macmule macmule closed this as completed Nov 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant