Skip to content

Commit

Permalink
v1.0.371
Browse files Browse the repository at this point in the history
  • Loading branch information
petervanderwalt committed Apr 6, 2024
1 parent 3f0f6b8 commit f220872
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
API_KEY_ISSUER_ID: ${{ secrets.api_key_issuer_id }}
#USE_HARD_LINKS: false
# new notarize secrets 2024
DEBUG: electron-notarize*
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
30 changes: 17 additions & 13 deletions notarize.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,28 @@

const {
notarize
} = require("@electron/notarize")
} = require("@electron/notarize");

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

const appName = context.packager.appInfo.productFilename
const appName = context.packager.appInfo.productFilename;

return await notarize({
appBundleId: "app.openbuilds.control",
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_APP_SPECIFIC_PASSWORD,
teamId: process.env.APPLE_TEAM_ID,
})
try {
await notarize({
appBundleId: "app.openbuilds.control",
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_APP_SPECIFIC_PASSWORD,
teamId: process.env.APPLE_TEAM_ID,
});

console.log("Notarized using OpenBuilds Notarize.js")
}
console.log("Notarization successful");
} catch (error) {
console.error("Notarization failed:", error);
}
};

0 comments on commit f220872

Please sign in to comment.