mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
codesign check
This commit is contained in:
parent
3c18b860bc
commit
018a08dd35
6
Makefile
6
Makefile
|
@ -9,7 +9,7 @@ OSX_APP_DIR = build/$(OSX_APP_NAME)
|
||||||
OSX_APP_CONTENTS_DIR = $(OSX_APP_DIR)/Contents
|
OSX_APP_CONTENTS_DIR = $(OSX_APP_DIR)/Contents
|
||||||
OSX_APP_RESOURCES_DIR = $(OSX_APP_CONTENTS_DIR)/Resources
|
OSX_APP_RESOURCES_DIR = $(OSX_APP_CONTENTS_DIR)/Resources
|
||||||
|
|
||||||
OSX_APP_CODESIGN_IDENTITY ?= dev
|
OSX_APP_CODESIGN_IDENTITY ?=
|
||||||
|
|
||||||
FRONTEND_EXPORT_DIR = frontend/out
|
FRONTEND_EXPORT_DIR = frontend/out
|
||||||
|
|
||||||
|
@ -53,8 +53,8 @@ $(OSX_APP_CONTENTS_DIR)/MacOS/bbgo-desktop: $(OSX_APP_CONTENTS_DIR)/MacOS .FORCE
|
||||||
go build -tags web -o $@ ./cmd/bbgo-desktop
|
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
|
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)
|
([[ -n "$(OSX_APP_CODESIGN_IDENTITY)" ]] && codesign --deep --force --verbose --sign "$(OSX_APP_CODESIGN_IDENTITY)" $(OSX_APP_DIR) \
|
||||||
codesign --verify -vvvv $(OSX_APP_DIR)
|
&& codesign --verify -vvvv $(OSX_APP_DIR)) || true
|
||||||
|
|
||||||
desktop: desktop-osx
|
desktop: desktop-osx
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user