package: conditionally require darwin packages
This commit is contained in:
@@ -137,9 +137,7 @@ var linux = {
|
|||||||
build()
|
build()
|
||||||
|
|
||||||
function buildDarwin (cb) {
|
function buildDarwin (cb) {
|
||||||
var appDmg = require('appdmg')
|
|
||||||
var plist = require('plist')
|
var plist = require('plist')
|
||||||
var sign = require('electron-osx-sign')
|
|
||||||
|
|
||||||
electronPackager(Object.assign({}, all, darwin), function (err, buildPath) {
|
electronPackager(Object.assign({}, all, darwin), function (err, buildPath) {
|
||||||
if (err) return cb(err)
|
if (err) return cb(err)
|
||||||
@@ -185,6 +183,9 @@ function buildDarwin (cb) {
|
|||||||
cp.execSync(`cp ${config.APP_FILE_ICON + '.icns'} ${resourcesPath}`)
|
cp.execSync(`cp ${config.APP_FILE_ICON + '.icns'} ${resourcesPath}`)
|
||||||
|
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
|
var appDmg = require('appdmg')
|
||||||
|
var sign = require('electron-osx-sign')
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sign the app with Apple Developer ID certificate. We sign the app for 2 reasons:
|
* Sign the app with Apple Developer ID certificate. We sign the app for 2 reasons:
|
||||||
* - So the auto-updater (Squirrrel.Mac) can check that app updates are signed by
|
* - So the auto-updater (Squirrrel.Mac) can check that app updates are signed by
|
||||||
|
|||||||
Reference in New Issue
Block a user