From c1ab5169d823203c2d835a9bea0543a0e750f8d2 Mon Sep 17 00:00:00 2001 From: Thomas Piccirello Date: Wed, 13 Nov 2019 18:36:03 -0800 Subject: [PATCH] Build macOS pkg during release --- Makefile | 1 + scripts/post-release.sh | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100755 scripts/post-release.sh diff --git a/Makefile b/Makefile index 5442fd9a..00212470 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ build: release: doppler run -- ./scripts/pre-release.sh $(v) doppler run -- ./scripts/release.sh + doppler run -- ./scripts/post-release.sh test-release: goreleaser release --snapshot --skip-publish --skip-sign --rm-dist diff --git a/scripts/post-release.sh b/scripts/post-release.sh new file mode 100755 index 00000000..a0918aac --- /dev/null +++ b/scripts/post-release.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +set -e + +VERSION=$(git describe --abbrev=0) + +echo "Building macOS pkg" + +pkgbuild --root dist/doppler_darwin_amd64/ --identifier "com.dopplerhq.cli" --version "${VERSION:1}" --install-location /usr/local/bin doppler.pkg +productbuild --package doppler.pkg "doppler-$VERSION.pkg"