Merge pull request #174 from resin-io/misc/sign-osx

Sign application in OS X using Resin's developer ID
This commit is contained in:
Juan Cruz Viotti 2016-03-02 11:34:46 -04:00
commit 6bf072c228
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