From cda27982ef1af0ae0a9157c8f87a4c390e922cae Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Wed, 13 Apr 2016 12:29:42 -0400 Subject: [PATCH] Publish ZIP versions of Etcher.app (#315) `Squirrel.Mac` works with ZIP packages rather than DMGs. Fixes: https://github.com/resin-io/etcher/issues/314 Signed-off-by: Juan Cruz Viotti --- Makefile | 50 +++++++++++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 21 deletions(-) diff --git a/Makefile b/Makefile index 701f754b..0dbb37a7 100644 --- a/Makefile +++ b/Makefile @@ -113,6 +113,16 @@ etcher-release/Etcher-win32-x64: . $(call sign-win32,$@/Etcher.exe) upx -9 $@/*.dll +sign-osx = $(ELECTRON_OSX_SIGN) $(1) --platform darwin --verbose --identity $(SIGN_IDENTITY_OSX) \ + && codesign --verify --deep --display --verbose=4 $(1) \ + && spctl --ignore-cache --no-cache --assess --type execute --verbose=4 $(1) + +etcher-release/installers/Etcher-darwin-x64.zip: etcher-release/Etcher-darwin-x64 package.json + mkdir -p $(dir $@) + $(call sign-osx,$