From 41b20989d29fa576395ad6e8feaa1b0441882ed8 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Mon, 7 Aug 2023 02:06:26 -0400 Subject: [PATCH] Add CODESIGN env var to plugin.mk for signing plugin binary. --- plugin.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin.mk b/plugin.mk index 15e77530..826545e3 100644 --- a/plugin.mk +++ b/plugin.mk @@ -66,7 +66,7 @@ ZSTD_COMPRESSION_LEVEL ?= 19 dist: all rm -rf dist mkdir -p dist/$(SLUG) - @# Strip and copy plugin binary + @# Strip symbols from binary cp $(TARGET) dist/$(SLUG)/ ifdef ARCH_MAC $(STRIP) -S dist/$(SLUG)/$(TARGET) @@ -74,6 +74,10 @@ ifdef ARCH_MAC $(OTOOL) -L dist/$(SLUG)/$(TARGET) else $(STRIP) -s dist/$(SLUG)/$(TARGET) +endif + @# Sign binary if CODESIGN is defined +ifdef CODESIGN + $(CODESIGN) dist/$(SLUG)/$(TARGET) endif @# Copy distributables ifdef ARCH_MAC