Skip to content

Commit

Permalink
Build macOS pkg during release
Browse files Browse the repository at this point in the history
  • Loading branch information
Piccirello committed Nov 14, 2019
1 parent a1fc0dd commit c1ab516
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 10 additions & 0 deletions scripts/post-release.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit c1ab516

Please sign in to comment.