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 439272b74d
commit 157d790e27

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"