Skip to content

Commit

Permalink
hack: made sure our handrolled alpha and beta tags remain intact
Browse files Browse the repository at this point in the history
  • Loading branch information
tillt committed Dec 27, 2023
1 parent 3cd8589 commit 24229d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/set_build_number.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

git=$(sh /etc/profile; which git)
git_release_version=$("$git" describe --tags --abbrev=0)

dots="${git_release_version//[^s|.]}"

number_commits_since_release_version=$("$git" rev-list $git_release_version..HEAD --count)

if [ "$dots" -gt "1" ]; then
number_commits_since_release_version=0
fi

target_plist="$TARGET_BUILD_DIR/$INFOPLIST_PATH"
dsym_plist="$DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Info.plist"

Expand Down

0 comments on commit 24229d6

Please sign in to comment.