From 536e94397f9ec515a0607da67a9795cc8be7d15b Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Wed, 5 Jun 2019 02:22:10 -0700 Subject: [PATCH] Add iteration too. --- scripts/build_linux_packages.sh | 1 + scripts/build_osx_package.sh | 1 + 2 files changed, 2 insertions(+) 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 \