Skip to content

Commit

Permalink
Updating darwin plugin builds to notarize binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
doggydogworld committed Aug 13, 2024
1 parent 2456762 commit e550444
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
10 changes: 10 additions & 0 deletions integrations/event-handler/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,18 @@ RELEASE_MESSAGE = "Building with GOOS=$(OS) GOARCH=$(ARCH)."
build:
GOOS=$(OS) GOARCH=$(ARCH) $(CGOFLAG) go build -o $(BUILDDIR)/teleport-event-handler $(BUILDFLAGS)

# darwin-signed-build is a wrapper around the build target that ensures it is codesigned
include ../../darwin-signing.mk
.PHONY: darwin-signed-build
darwin-signed-build: build
$(NOTARIZE_BINARIES)

.PHONY: release
ifeq ($(OS),darwin)
release: darwin-signed-build
else
release: build
endif
@echo "---> $(RELEASE_MESSAGE)"
mkdir $(RELEASE_NAME)
cp -rf $(BINARY) \
Expand Down
15 changes: 13 additions & 2 deletions integrations/terraform/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,20 @@ endif
rm -r ./tfschema/github.com/
@go run ./gen/main.go

.PHONY: release
# darwin-signed-build is a wrapper around the build target that ensures it is codesigned
include ../../darwin-signing.mk
.PHONY: darwin-signed-build
darwin-signed-build: BINARIES=$(BUILDDIR)/terraform-provider-teleport
ifeq ($(OS)-$(ARCH),darwin-universal)
release: build-darwin-universal
darwin-signed-build: build-darwin-universal
else
darwin-signed-build: build
endif
$(NOTARIZE_BINARIES)

.PHONY: release
ifeq ($(OS),darwin)
release: darwin-signed-build
else
release: build
endif
Expand Down

0 comments on commit e550444

Please sign in to comment.