From 10f3a2e7cb0cb06dddd5e5ce88bd7cc6cbb99ca7 Mon Sep 17 00:00:00 2001 From: Max Fierke Date: Sun, 15 Oct 2023 20:59:48 -0500 Subject: [PATCH] Add SKIP_NOTARIZE make variable to skip notarization on macOS Mostly for testing --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index beae172..839f4e8 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,7 @@ RELEASE ?= STATIC ?= STRIP_RPATH ?= SOURCES := src/*.cr src/**/*.cr +SKIP_NOTARIZE ?= TAG_NAME ?= $(shell git describe --tags) TARGET_ARCH ?= $(HOST_ARCH) TARGET_CABI ?= @@ -146,7 +147,7 @@ test: spec check-libraries release: gon.hcl bin/mstrap mkdir -p ./dist - @if [ "$(TARGET_OS)" == "darwin" ]; then \ + @if [ "$(TARGET_OS)" == "darwin" ] && [ -z "$(SKIP_NOTARIZE)" ]; then \ gon -log-level=debug $(GON_CONFIG); \ else \ zip --junk-paths dist/mstrap.zip bin/mstrap; \