From 25eef3bfad10a2209dfbfae1f3ca87385887f4fa Mon Sep 17 00:00:00 2001 From: Dmitry Vedenko Date: Wed, 26 Jan 2022 19:41:45 +0300 Subject: [PATCH] Fixes DMG code signing --- dist/package/index.js | 2 +- lib/appleCodeSigning.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/package/index.js b/dist/package/index.js index 8e5850e..95d3070 100644 --- a/dist/package/index.js +++ b/dist/package/index.js @@ -96,7 +96,7 @@ async function singApp(appLocation, identity) { } async function signDMG(dmgPath, appIdentifier, codesignIdentifier) { - if (!identity) { + if (!codesignIdentifier) { helpers.log("Skipping code signings, as there is no codesign identity provided"); return ; } diff --git a/lib/appleCodeSigning.js b/lib/appleCodeSigning.js index ec2a84d..6955ae2 100644 --- a/lib/appleCodeSigning.js +++ b/lib/appleCodeSigning.js @@ -90,7 +90,7 @@ async function singApp(appLocation, identity) { } async function signDMG(dmgPath, appIdentifier, codesignIdentifier) { - if (!identity) { + if (!codesignIdentifier) { helpers.log("Skipping code signings, as there is no codesign identity provided"); return ; }