Browse Source

Add CODESIGN env var to plugin.mk for signing plugin binary.

tags/v2.4.0
Andrew Belt 1 year ago
parent
commit
41b20989d2
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      plugin.mk

+ 5
- 1
plugin.mk View File

@@ -66,7 +66,7 @@ ZSTD_COMPRESSION_LEVEL ?= 19
dist: all dist: all
rm -rf dist rm -rf dist
mkdir -p dist/$(SLUG) mkdir -p dist/$(SLUG)
@# Strip and copy plugin binary
@# Strip symbols from binary
cp $(TARGET) dist/$(SLUG)/ cp $(TARGET) dist/$(SLUG)/
ifdef ARCH_MAC ifdef ARCH_MAC
$(STRIP) -S dist/$(SLUG)/$(TARGET) $(STRIP) -S dist/$(SLUG)/$(TARGET)
@@ -74,6 +74,10 @@ ifdef ARCH_MAC
$(OTOOL) -L dist/$(SLUG)/$(TARGET) $(OTOOL) -L dist/$(SLUG)/$(TARGET)
else else
$(STRIP) -s dist/$(SLUG)/$(TARGET) $(STRIP) -s dist/$(SLUG)/$(TARGET)
endif
@# Sign binary if CODESIGN is defined
ifdef CODESIGN
$(CODESIGN) dist/$(SLUG)/$(TARGET)
endif endif
@# Copy distributables @# Copy distributables
ifdef ARCH_MAC ifdef ARCH_MAC


Loading…
Cancel
Save