Skip to content

Commit

Permalink
build(notarize): adds check for apple credentials (#446)
Browse files Browse the repository at this point in the history
Local builds will fail if the environment variables for notarization are not satisfied. Notarization
is not required when testing a build locally, so this allows local builds to complete without Apple
credentials
  • Loading branch information
2xAA authored Sep 18, 2020
1 parent b7282cb commit 36f8742
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion notarize.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ const { notarize } = require("electron-notarize");

exports.default = async function notarizing(context) {
const { electronPlatformName, appOutDir } = context;
if (electronPlatformName !== "darwin") {
if (
electronPlatformName !== "darwin" ||
!process.env.APPLEID ||
!process.env.APPLEIDPASS
) {
return;
}

Expand Down

0 comments on commit 36f8742

Please sign in to comment.