allow non-notarized mac build for testing

Skipping notarization isn't strictly wrong, but needs a big warning
since the build probably won't run on Catalina.
This commit is contained in:
Christopher Willis-Ford 2020-05-22 16:16:56 -07:00
parent 73a2d3e015
commit 1bc9f570cd

View file

@ -5,11 +5,13 @@ const notarizeMacBuild = async function (context) {
const appId = 'edu.mit.scratch.scratch-desktop';
if (!process.env.AC_USERNAME) {
throw new Error(
'Notarizing the macOS build requires an Apple ID.\n' +
'Please set the environment variable AC_USERNAME.\n' +
'Make sure your keychain has an item for "Application Loader: your@apple.id"'
);
console.error([
'Notarizing the macOS build requires an Apple ID.',
'Please set the environment variable AC_USERNAME.',
'Make sure your keychain has an item for "Application Loader: your@apple.id"',
'This build will not run on newer versions of macOS!'
].join('\n'));
return;
}
const appleId = process.env.AC_USERNAME;