Fixed version generation string for deb package.

Previously it failed when trying to build a release version.
This commit is contained in:
Daniel Wróbel 2020-06-24 19:53:07 +02:00 committed by GitHub
parent 115a71995f
commit a9ce9ec6d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,14 @@ set -e
mkdir -p /tmp/syncplay/DEBIAN
echo "Package: syncplay
Version: "$(sed -n -e "s/^.*version = //p" syncplay/__init__.py | sed "s/'//g")""$(git describe --exact-match --tags HEAD &>/dev/null && echo -git-$(date -u +%y%m%d%H%M))"
Version: "$(
sed -n -e "s/^.*version = //p" syncplay/__init__.py | sed "s/'//g"
)$(
if [[ $(git describe --exact-match --tags HEAD | wc -l) = '0' ]];
then
echo -git-$(date -u +%y%m%d%H%M)
fi
)"
Architecture: all
Maintainer: <dev@syncplay.pl>
Depends: python3 (>= 3.4), python3-pyside2.qtwidgets, python3-pyside2.qtcore, python3-twisted (>= 16.4.0), python3-certifi, mpv (>= 0.23) | vlc (>= 2.2.1)