Fix versioning on deb packages

fixes #197
This commit is contained in:
Konstantinos Sideris 2018-01-10 16:00:20 +02:00
parent ddfce136ed
commit 7f3b6c4846
2 changed files with 16 additions and 0 deletions

View file

@ -7,6 +7,17 @@
DIR=package.dir
TAG=`git tag -l --points-at HEAD`
# Strip `v` from the version tag.
if [[ $TAG == v* ]]; then
TAG=${TAG#?};
fi
# Prepend nightly with the latest version.
if [[ $TAG == "nightly" ]]; then
LATEST_VERSION=`git tag -l | grep "^v" | sort | head -n 1`
TAG=${LATEST_VERSION#?}.nightly
fi
# Installing dependencies on travis.
if [ ! -z "$TRAVIS_OS_NAME" ]; then
sudo apt-add-repository -y ppa:brightbox/ruby-ng

5
.gitignore vendored
View file

@ -85,3 +85,8 @@ dist/MacOS/nheko.app/Contents/MacOS/nheko
# AppImage
*.AppImage
*.AppDir
# Artifacts
*.rpm
*.deb
package.dir