Sign application in OS X using Resin's developer ID

Fixes: https://github.com/resin-io/etcher/issues/158
This commit is contained in:
Juan Cruz Viotti 2016-03-02 10:51:55 -04:00
parent 7899e2ed59
commit 9ee6df6016
2 changed files with 17 additions and 0 deletions

View File

@ -4,6 +4,7 @@ ELECTRON_IGNORE=$(shell cat package.ignore | tr "\\n" "|" | sed "s/.$$//")
ELECTRON_VERSION=0.36.8
ETCHER_VERSION=$(shell node -e "console.log(require('./package.json').version)")
APPLICATION_NAME=$(shell node -e "console.log(require('./package.json').displayName)")
SIGN_IDENTITY_OSX="Rulemotion Ltd (66H43P8FRG)"
etcher-release/Etcher-darwin-x64: .
$(ELECTRON_PACKAGER) . $(APPLICATION_NAME) \
@ -17,6 +18,7 @@ etcher-release/Etcher-darwin-x64: .
--helper-bundle-id="io.resin.etcher-helper" \
--app-bundle-id="io.resin.etcher" \
--app-category-type="public.app-category.developer-tools" \
--sign=$(SIGN_IDENTITY_OSX) \
--icon="assets/icon.icns" \
--overwrite \
--out=$(dir $@)
@ -74,6 +76,7 @@ etcher-release/Etcher-win32-x64: .
etcher-release/installers/Etcher.dmg: etcher-release/Etcher-darwin-x64 package.json
$(ELECTRON_BUILDER) "$</$(APPLICATION_NAME).app" \
--platform=osx \
--sign=$(SIGN_IDENTITY_OSX) \
--out=$(dir $@)
etcher-release/installers/Etcher-linux-x64.tar.gz: etcher-release/Etcher-linux-x64

View File

@ -11,6 +11,20 @@ Prequisites
- [node](https://nodejs.org)
- [GNU Make](https://www.gnu.org/software/make/)
Signing
-------
### OS X
1. Get our Apple Developer ID certificate for signing applications distributed outside the Mac App Store from the Resin.io Apple account.
2. Install the Developer ID certificate to your Mac's Keychain by double clicking on the certificate file.
The application will be signed automatically using this certificate when packaging for OS X.
Packaging
---------
Run the following command to make installers for all supported operating systems:
```sh