Skip to content

Commit

Permalink
codesign MacOS bin after patching nix deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Jan 3, 2025
1 parent a61d297 commit afb9b28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,17 @@ $(OUT)/share/kupo/LICENSE:

$(BIN_DIR_PATH)/kupo:
@nix develop $(NIX_SHELL) $(NIX_OPTS) --command bash -c "cabal build kupo:exe:kupo $(PG_FLAG)"
@chmod +x $@
ifeq ($(OS),macos)
@scripts/patch-nix-deps.sh $@
@chmod +x $@
@codesign -s - -f -vvvvvv $@
endif

$(OUT)/bin/kupo: $(BIN_DIR_PATH)/kupo
@mkdir -p $(@D)
@echo "$^ → $(@D)/kupo"
@cp $^ $(@D)
@chmod +x $@

$(OUT)/lib:
@mkdir -p $@
Expand Down

0 comments on commit afb9b28

Please sign in to comment.