diff --git a/scripts/build_linux_packages.sh b/scripts/build_linux_packages.sh index 644804c8..66dd7958 100755 --- a/scripts/build_linux_packages.sh +++ b/scripts/build_linux_packages.sh @@ -42,6 +42,7 @@ sed "s#ExecStart.*#ExecStart=${BINFIX}/bin/${BINARY} --config=${PREFIX}/etc/${BI fpm -s dir -t ${OUTPUT} \ --name ${BINARY} \ --version ${VERSION} \ + --iteration $(git rev-list --all --count) \ --after-install scripts/after-install.sh \ --before-remove scripts/before-remove.sh \ --license MIT \ diff --git a/scripts/build_osx_package.sh b/scripts/build_osx_package.sh index 17e88f13..5acc3469 100755 --- a/scripts/build_osx_package.sh +++ b/scripts/build_osx_package.sh @@ -36,6 +36,7 @@ cp init/launchd/com.github.davidnewhall.unifi-poller.plist package_build/Library fpm -s dir -t osxpkg \ --name ${BINARY} \ --version ${VERSION} \ + --iteration $(git rev-list --all --count) \ --after-install scripts/after-install-osx.sh \ --osxpkg-identifier-prefix com.github.davidnewhall \ --license MIT \