mirror of
https://github.com/hyperspacedev/hyperspace
synced 2025-02-02 10:27:20 +01:00
27 lines
861 B
JavaScript
27 lines
861 B
JavaScript
|
// notarize.js
|
||
|
// Script to notarize Hyperspace for macOS
|
||
|
// © 2019 Hyperspace developers. Licensed under Apache 2.0.
|
||
|
|
||
|
const { notarize } = require('electron-notarize');
|
||
|
|
||
|
// This is pulled from the Apple Keychain. To set this up,
|
||
|
// follow the instructions provided here:
|
||
|
// https://github.com/electron/electron-notarize#safety-when-using-appleidpassword
|
||
|
const password = `@keychain:AC_PASSWORD`;
|
||
|
|
||
|
exports.default = async function notarizing(context) {
|
||
|
const { electronPlatformName, appOutDir } = context;
|
||
|
if (electronPlatformName !== 'darwin') {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
const appName = context.packager.appInfo.productFilename;
|
||
|
|
||
|
return await notarize({
|
||
|
appBundleId: 'net.marquiskurt.hyperspace',
|
||
|
appPath: `${appOutDir}/${appName}.app`,
|
||
|
appleId: "appleseed@marquiskurt.net",
|
||
|
appleIdPassword: password,
|
||
|
ascProvider: "FQQXSP79X3"
|
||
|
});
|
||
|
};
|