Skip to content

Commit

Permalink
macos: Fix code signing again
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fragglet committed Oct 18, 2024
1 parent 288485e commit 142c224
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/macos/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 142c224

Please sign in to comment.