From 8f5e284fa165a7e8c606dc662170414a73296e22 Mon Sep 17 00:00:00 2001 From: Thomas Piccirello Date: Wed, 13 Nov 2019 18:49:48 -0800 Subject: [PATCH] Build macOS packages in dist folder --- scripts/post-release.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/post-release.sh b/scripts/post-release.sh index a0918aac..090ed584 100755 --- a/scripts/post-release.sh +++ b/scripts/post-release.sh @@ -6,5 +6,8 @@ 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" +pkg_name="dist/doppler.pkg" + +pkgbuild --root dist/doppler_darwin_amd64/ --identifier "com.dopplerhq.cli" --version "${VERSION:1}" --install-location /usr/local/bin "$pkg_name" +productbuild --package "$pkg_name" "dist/doppler-$VERSION.pkg" +rm "$pkg_name"