Merge pull request #704

af1edc0 fix version info (Jaquee)
This commit is contained in:
Riccardo Spagni 2017-05-30 21:42:03 +02:00
commit f11d2bc702
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
2 changed files with 8 additions and 2 deletions

View File

@ -78,11 +78,11 @@ fi
# force version update
get_tag
echo "var GUI_VERSION = \"$VERSIONTAG\"" > version.js
echo "var GUI_VERSION = \"$TAGNAME\"" > version.js
pushd "$MONERO_DIR"
get_tag
popd
echo "var GUI_MONERO_VERSION = \"$VERSIONTAG\"" >> version.js
echo "var GUI_MONERO_VERSION = \"$TAGNAME\"" >> version.js
cd build
qmake ../monero-wallet-gui.pro "$CONFIG" || exit

View File

@ -53,6 +53,12 @@ function get_tag()
echo "You are ahead of or behind a tagged release"
VERSIONTAG="$COMMIT"
fi
# save tag name + commit if availible
TAGNAME=$(git describe | sed -e 's/[\t ]*//')
if test -z "$TAGNAME"
then
TAGNAME="$VERSIONTAG"
fi
fi
fi
}