mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-28 13:46:33 +00:00
Allow skipping notarization when building package
Change-type: patch Changelog-entry: Allow skipping notarization when building package (dev) Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzothunder.ambrosi@gmail.com>
This commit is contained in:
parent
2fc8b07e29
commit
5f5c66e3f2
@ -1,10 +1,11 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const { notarize } = require('electron-notarize')
|
const { notarize } = require('electron-notarize')
|
||||||
|
const { ELECTRON_SKIP_NOTARIZATION } = process.env
|
||||||
|
|
||||||
async function main(context) {
|
async function main(context) {
|
||||||
const { electronPlatformName, appOutDir } = context
|
const { electronPlatformName, appOutDir } = context
|
||||||
if (electronPlatformName !== 'darwin') {
|
if (electronPlatformName !== 'darwin' || ELECTRON_SKIP_NOTARIZATION === 'true') {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user