You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
714 B
19 lines
714 B
/* eslint-disable @typescript-eslint/no-var-requires */ |
|
require("dotenv").config(); |
|
const { notarize } = require("electron-notarize"); |
|
|
|
exports.default = async function notarizing(context) { |
|
const { electronPlatformName, appOutDir } = context; |
|
if (electronPlatformName !== "darwin") { |
|
return; |
|
} |
|
const appleId = process.env.APPLE_ID_USERNAME || process.env.APPLEID; |
|
const appleIdPassword = process.env.APPLE_ID_PASSWORD || `@keychain:AC_PASSWORD`; |
|
const appName = context.packager.appInfo.productFilename; |
|
return await notarize({ |
|
appBundleId: "com.bitwarden.directory-connector", |
|
appPath: `${appOutDir}/${appName}.app`, |
|
appleId: appleId, |
|
appleIdPassword: appleIdPassword, |
|
}); |
|
};
|
|
|