mirror of
https://github.com/status-im/status-mobile.git
synced 2025-02-26 07:15:53 +00:00
fix path for getting VERSION for xcode
This commit is contained in:
parent
52236eef8c
commit
2bf1d3a128
@ -22,12 +22,13 @@ INFO_PLIST="${TARGET_BUILD_DIR}/${INFOPLIST_PATH}"
|
|||||||
if [[ $(git ls-files -m "StatusIm/Info.plist") = *"Info.plist"* ]]; then
|
if [[ $(git ls-files -m "StatusIm/Info.plist") = *"Info.plist"* ]]; then
|
||||||
echo "version was set in Info.plist"
|
echo "version was set in Info.plist"
|
||||||
else
|
else
|
||||||
|
pwd
|
||||||
# Build version (closest-tag-or-branch "-" commits-since-tag "-" short-hash dirty-flag)
|
# Build version (closest-tag-or-branch "-" commits-since-tag "-" short-hash dirty-flag)
|
||||||
BUILD_VERSION="$(cat ../../VERSION)-$(git describe --always --dirty=+)"
|
BUILD_VERSION="$(cat ../VERSION)-$(git describe --always --dirty=+)"
|
||||||
|
|
||||||
# Use the latest tag for short version (expected tag format "vn[.n[.n]]")
|
# Use the latest tag for short version (expected tag format "vn[.n[.n]]")
|
||||||
# or if there are no tags, we make up version 0.0.<commit count>
|
# or if there are no tags, we make up version 0.0.<commit count>
|
||||||
LATEST_TAG=$(cat ../../VERSION) || LATEST_TAG="HEAD"
|
LATEST_TAG=$(cat ../VERSION) || LATEST_TAG="HEAD"
|
||||||
if [ $LATEST_TAG = "HEAD" ]
|
if [ $LATEST_TAG = "HEAD" ]
|
||||||
then COMMIT_COUNT=$(git rev-list --count HEAD)
|
then COMMIT_COUNT=$(git rev-list --count HEAD)
|
||||||
LATEST_TAG="0.0.$COMMIT_COUNT"
|
LATEST_TAG="0.0.$COMMIT_COUNT"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user