Skip to content

Commit

Permalink
Build macOS packages in dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Piccirello committed Nov 14, 2019
1 parent 9c3e94b commit 8f5e284
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/post-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 8f5e284

Please sign in to comment.