Skip to content

Commit

Permalink
fix(env): miss SKIP_MAC_NOTARIZE logic (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackHole1 committed Apr 21, 2021
1 parent a3a094d commit c95d1c7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions config/.env
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ FLAT_SERVER_DOMAIN=

UPDATE_DOMAIN=

SKIP_MAC_NOTARIZE=
APPLE_API_ISSUER=
APPLE_API_KEY=

Expand Down
1 change: 1 addition & 0 deletions desktop/main-app/scripts/Notarize.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const { notarize } = require("electron-notarize");
dotenvFlow.config({
path: path.resolve(__dirname, "..", "..", "..", "config"),
default_node_env: "production",
silent: true,
});

exports.default = async function notarizing(context) {
Expand Down
6 changes: 3 additions & 3 deletions desktop/main-app/scripts/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ const buildElectron = async buildType => {

if (!version.includes("alpha")) {
config.releaseInfo.releaseNotes = generateReleaseNote();
}

if (buildType === "mac") {
config.afterSign = path.join("scripts", "Notarize.js");
}
if (buildType === "mac" && process.env.SKIP_MAC_NOTARIZE === "no") {
config.afterSign = path.join("scripts", "Notarize.js");
}

if (buildType === "win") {
Expand Down

0 comments on commit c95d1c7

Please sign in to comment.