Skip to content

Commit

Permalink
deb: add versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Sep 25, 2024
1 parent e0bd1cd commit b7320e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
set -euxo pipefail

PY_VER=$(head -n 1 robot_failover.pex | grep -o "python3.*")
PKG_VER=$(git describe --tags | sed "s|v||g")

rm -fv *.deb
fpm -s dir -v "0.0.0-$(git rev-parse --short HEAD)" -d "$PY_VER" -t deb -n robot-failover --prefix /usr/bin robot_failover.pex=robot_failover
fpm -s dir -v "$PKG_VER" -d "$PY_VER" -t deb -n robot-failover --prefix /usr/bin robot_failover.pex=robot_failover
mv *.deb robot_failover.deb

0 comments on commit b7320e9

Please sign in to comment.