account for the fact that stdeb's util.py renames .dev to ~dev, in version names

This commit is contained in:
Miguel Jacq 2017-05-19 14:36:28 +10:00
parent 0cf9e44367
commit 55d18d88f4
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -13,6 +13,9 @@ python3 setup.py --command-packages=stdeb.command bdist_deb
# return install instructions if onionshare builds properly
if [[ $? -eq 0 ]]; then
# The build process in stdeb's util.py renames .dev to ~dev
# Adjust it here for the purposes of displaying the right filename
VERSION="${VERSION/.dev/~dev}"
echo ""
echo "To install, run:"
echo "sudo dpkg -i deb_dist/onionshare_$VERSION-1_all.deb"