Skip to content

Commit

Permalink
fix app ID
Browse files Browse the repository at this point in the history
  • Loading branch information
bartolomej committed Nov 2, 2023
1 parent 93a17e9 commit e4ed12c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/electron/.erb/scripts/notarize.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const { notarize } = require('@electron/notarize');
const { build } = require('../../package.json');

exports.default = async function notarizeMacos(context) {
const { electronPlatformName, appOutDir } = context;
Expand All @@ -16,15 +15,16 @@ exports.default = async function notarizeMacos(context) {
!('APPLE_ID' in process.env && 'APPLE_APP_SPECIFIC_PASSWORD' in process.env)
) {
console.warn(
'Skipping notarizing step. APPLE_ID and APPLE_APP_SPECIFIC_PASSWORD env variables must be set',
'Skipping notarizing step. APPLE_ID and APPLE_APP_SPECIFIC_PASSWORD env variables must be set'
);
return;
}

const appName = context.packager.appInfo.productFilename;

await notarize({
appBundleId: build.appId,
// Must be kept in sync with `appId` field in `electron-builder.yml`
appBundleId: 'dev.flowser.app',
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_APP_SPECIFIC_PASSWORD,
Expand Down

0 comments on commit e4ed12c

Please sign in to comment.