Automatically update version in Debian build

This commit is contained in:
Skylar Ittner 2021-07-16 15:28:35 -06:00
parent e6878a623d
commit d6ad192782
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
Package: ipentool
Version: 1.0.0
Version: VERSION
Maintainer: Netsyms Technologies <admin@netsyms.com>
Section: web
Homepage: https://netsyms.com/apps/ipentool

View File

@ -5,6 +5,7 @@ rm -rf debian/usr/share/ipentool
mkdir -p debian/usr/share/ipentool
mkdir -p debian/usr/share/doc/ipentool
rsync -rv "$1" debian/usr/share/ipentool
sed -i "s/VERSION/$3/" debian/DEBIAN/control
cp debian/DEBIAN/copyright debian/usr/share/doc/ipentool/
cp "$2" debian/usr/share/ipentool/logo.svg
dpkg-deb -b debian "out/ipentool_$3_all.deb"