Skip to content

Commit

Permalink
Update notarization tool #191
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanebouget committed Jul 1, 2024
1 parent 51227af commit 6decdb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@ jobs:
mac_certs_password: ${{ secrets.mac_certs_password }}
env:
# macOS notarization API key
API_KEY: ${{ secrets.api_key }}
API_KEY_ID: ${{ secrets.api_key_id }}
API_KEY_ISSUER_ID: ${{ secrets.api_key_issuer_id }}
7 changes: 2 additions & 5 deletions scripts/notarize.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ module.exports = async function (params) {

console.log(`Notarizing ${appId} found at ${appPath}`);
console.log("process.env.API_KEY_ID:", process.env.API_KEY_ID);
console.log(
"process.env.API_KEY:",
"~/private_keys/AuthKey_" + process.env.API_KEY_ID + ".p8"
);
console.log("process.env.API_KEY:", process.env.API_KEY);
console.log("process.env.API_KEY_ISSUER_ID:", process.env.API_KEY_ISSUER_ID);

try {
Expand All @@ -38,7 +35,7 @@ module.exports = async function (params) {
appBundleId: appId,
appPath: appPath,
appleApiKeyId: process.env.API_KEY_ID,
appleApiKey: "~/private_keys/AuthKey_" + process.env.API_KEY_ID + ".p8",
appleApiKey: process.env.API_KEY,
appleApiIssuer: process.env.API_KEY_ISSUER_ID,
});
} catch (error) {
Expand Down

0 comments on commit 6decdb2

Please sign in to comment.