Skip to content

Commit 3415501

Browse files
committed
chore: sign macOS binaries in makefile
Signed-off-by: Abiola Ibrahim <[email protected]>
1 parent aa4d3e7 commit 3415501

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@ fmt:
3737
goimports -w .
3838

3939
.PHONY: build
40-
build:
40+
build: clean
4141
GOOS=$(GOOS) GOARCH=$(GOARCH) go build -ldflags="$(LDFLAGS)" -o $(OUTPUT_DIR)/$(OUTPUT_BIN) ./cmd/colima
4242
cd $(OUTPUT_DIR) && openssl sha256 -r -out $(OUTPUT_BIN).sha256sum $(OUTPUT_BIN)
43+
ifeq ($(GOOS),darwin)
44+
codesign -s - $(OUTPUT_DIR)/$(OUTPUT_BIN)
45+
endif
4346

4447
.PHONY: test
4548
test:

0 commit comments

Comments
 (0)