From 142c2249af53109d9743090102891594a3bb32b0 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 17 Oct 2024 20:33:39 -0400 Subject: [PATCH] macos: Fix code signing again As with `otool`, `strip` will also invalidate any code signatures in a modified binary. So we need to make sure that we invoke `strip` first, *before* the `cp-with-libs` script is invoked that fixes the code signatures. --- pkg/macos/GNUmakefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/macos/GNUmakefile b/pkg/macos/GNUmakefile index 48028cc..4dbdb6f 100644 --- a/pkg/macos/GNUmakefile +++ b/pkg/macos/GNUmakefile @@ -47,8 +47,9 @@ $(STAGING_DIR): app.icns cp $(TOPLEVEL)/COPYING.md "$(STAGING_DIR)/Software License" ln -s /Applications "$(STAGING_DIR)" - ./cp-with-libs $(TOPLEVEL)/src/sopwith "$(APP_BIN_DIR)" - $(STRIP) "$(APP_BIN_DIR)/sopwith" + cp "$(TOPLEVEL)/src/sopwith" . + $(STRIP) sopwith + ./cp-with-libs sopwith "$(APP_BIN_DIR)" mkdir -p "$(DOC_DIR)" for d in $(DOC_FILES); do \