From e2545050c46d4273e322d07153f48988c46a31af Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 17 Feb 2021 17:54:26 +0800 Subject: [PATCH] add codesign --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 3aee5945b..dc8ab21d4 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,8 @@ OSX_APP_DIR = build/$(OSX_APP_NAME) OSX_APP_CONTENTS_DIR = $(OSX_APP_DIR)/Contents OSX_APP_RESOURCES_DIR = $(OSX_APP_CONTENTS_DIR)/Resources +OSX_APP_CODESIGN_IDENTITY ?= dev + FRONTEND_EXPORT_DIR = frontend/out all: $(BIN_DIR) @@ -51,6 +53,8 @@ $(OSX_APP_CONTENTS_DIR)/MacOS/bbgo-desktop: $(OSX_APP_CONTENTS_DIR)/MacOS .FORCE go build -tags web -o $@ ./cmd/bbgo-desktop desktop-osx: $(OSX_APP_CONTENTS_DIR)/MacOS/bbgo-desktop $(OSX_APP_CONTENTS_DIR)/Info.plist $(OSX_APP_RESOURCES_DIR)/icon.icns + codesign --deep --force --verbose --sign "$(OSX_APP_CODESIGN_IDENTITY)" $(OSX_APP_DIR) + codesign --verify -vvvv $(OSX_APP_DIR) desktop: desktop-osx