diff options
author | Andrew Belt <andrewpbelt@gmail.com> | 2023-08-07 02:06:26 -0400 |
---|---|---|
committer | Andrew Belt <andrewpbelt@gmail.com> | 2023-08-07 02:06:26 -0400 |
commit | 41b20989d29fa576395ad6e8feaa1b0441882ed8 (patch) | |
tree | cfddc3919fd000fe7bd9080abdc8e7db6089b436 | |
parent | 16db3fb2e126b5ffcb9375a68fa14a52ce5d8449 (diff) |
Add CODESIGN env var to plugin.mk for signing plugin binary.v2.4.0
-rw-r--r-- | plugin.mk | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) @@ -75,6 +75,10 @@ ifdef ARCH_MAC 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 rsync -rR $(DISTRIBUTABLES) dist/$(SLUG)/ |