mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-21 18:26:32 +00:00
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:
commit
6bf072c228
3
Makefile
3
Makefile
@ -4,6 +4,7 @@ ELECTRON_IGNORE=$(shell cat package.ignore | tr "\\n" "|" | sed "s/.$$//")
|
|||||||
ELECTRON_VERSION=0.36.8
|
ELECTRON_VERSION=0.36.8
|
||||||
ETCHER_VERSION=$(shell node -e "console.log(require('./package.json').version)")
|
ETCHER_VERSION=$(shell node -e "console.log(require('./package.json').version)")
|
||||||
APPLICATION_NAME=$(shell node -e "console.log(require('./package.json').displayName)")
|
APPLICATION_NAME=$(shell node -e "console.log(require('./package.json').displayName)")
|
||||||
|
SIGN_IDENTITY_OSX="Rulemotion Ltd (66H43P8FRG)"
|
||||||
|
|
||||||
etcher-release/Etcher-darwin-x64: .
|
etcher-release/Etcher-darwin-x64: .
|
||||||
$(ELECTRON_PACKAGER) . $(APPLICATION_NAME) \
|
$(ELECTRON_PACKAGER) . $(APPLICATION_NAME) \
|
||||||
@ -17,6 +18,7 @@ etcher-release/Etcher-darwin-x64: .
|
|||||||
--helper-bundle-id="io.resin.etcher-helper" \
|
--helper-bundle-id="io.resin.etcher-helper" \
|
||||||
--app-bundle-id="io.resin.etcher" \
|
--app-bundle-id="io.resin.etcher" \
|
||||||
--app-category-type="public.app-category.developer-tools" \
|
--app-category-type="public.app-category.developer-tools" \
|
||||||
|
--sign=$(SIGN_IDENTITY_OSX) \
|
||||||
--icon="assets/icon.icns" \
|
--icon="assets/icon.icns" \
|
||||||
--overwrite \
|
--overwrite \
|
||||||
--out=$(dir $@)
|
--out=$(dir $@)
|
||||||
@ -74,6 +76,7 @@ etcher-release/Etcher-win32-x64: .
|
|||||||
etcher-release/installers/Etcher.dmg: etcher-release/Etcher-darwin-x64 package.json
|
etcher-release/installers/Etcher.dmg: etcher-release/Etcher-darwin-x64 package.json
|
||||||
$(ELECTRON_BUILDER) "$</$(APPLICATION_NAME).app" \
|
$(ELECTRON_BUILDER) "$</$(APPLICATION_NAME).app" \
|
||||||
--platform=osx \
|
--platform=osx \
|
||||||
|
--sign=$(SIGN_IDENTITY_OSX) \
|
||||||
--out=$(dir $@)
|
--out=$(dir $@)
|
||||||
|
|
||||||
etcher-release/installers/Etcher-linux-x64.tar.gz: etcher-release/Etcher-linux-x64
|
etcher-release/installers/Etcher-linux-x64.tar.gz: etcher-release/Etcher-linux-x64
|
||||||
|
@ -11,6 +11,20 @@ Prequisites
|
|||||||
- [node](https://nodejs.org)
|
- [node](https://nodejs.org)
|
||||||
- [GNU Make](https://www.gnu.org/software/make/)
|
- [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:
|
Run the following command to make installers for all supported operating systems:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user