Skip to content

Commit

Permalink
Fix zip archive artifacts for Darwin and Windows
Browse files Browse the repository at this point in the history
* Fix cross-compilation for Darwin and Windows when making
the zip artifacts
  • Loading branch information
dghubble committed Aug 7, 2020
1 parent 5767bc7 commit 48823bd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ Notable changes between releases.

## Latest

## v0.4.1

* Fix zip archive artifacts for Darwin and Windows ([#53](https://github.com/poseidon/terraform-provider-matchbox/pull/53))

## v0.4.0

* Migrate to the Terraform Plugin SDK ([#49](https://github.com/poseidon/terraform-provider-matchbox/pull/49))
* Add Linux ARM64 release artifacts
* Add zip archive format with signed checksum

## v0.3.0

Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ release: \
_output/plugin-linux-arm64.tar.gz \
_output/plugin-darwin-amd64.tar.gz \
_output/plugin-windows-amd64.tar.gz \
_output/plugin-linux_amd64.zip \
_output/plugin-linux_arm64.zip \
_output/plugin-darwin_amd64.zip \
_output/plugin-windows_amd64.zip
_output/plugin-linux-amd64.zip \
_output/plugin-linux-arm64.zip \
_output/plugin-darwin-amd64.zip \
_output/plugin-windows-amd64.zip

_output/plugin-%.tar.gz: NAME=terraform-provider-matchbox-$(VERSION)-$*
_output/plugin-%.tar.gz: DEST=_output/$(NAME)
Expand All @@ -62,7 +62,7 @@ _output/plugin-%.tar.gz: _output/%/terraform-provider-matchbox
@cp _output/$*/terraform-provider-matchbox $(DEST)
@tar zcvf $(DEST).tar.gz -C _output $(NAME)

_output/plugin-%.zip: NAME=terraform-provider-matchbox_$(SEMVER)_$*
_output/plugin-%.zip: NAME=terraform-provider-matchbox_$(SEMVER)_$(subst -,_,$*)
_output/plugin-%.zip: DEST=_output/$(NAME)
_output/plugin-%.zip: _output/%/terraform-provider-matchbox
@mkdir -p $(DEST)
Expand Down

0 comments on commit 48823bd

Please sign in to comment.