Disable code signing when workflows run from forks

- Skip Mac/Win code signing and Apple notarization only if PR comes from a fork
- Disable workflows entirely if the user enabled Github Actions in
their fork repo
- Add steps to help Mac users to test their forked code in BUILDING.md
This commit is contained in:
rsora
2021-03-12 17:34:12 +01:00
committed by Roberto Sora
parent 5c8669d699
commit ef03d3f583
4 changed files with 43 additions and 12 deletions

View File

@@ -6,6 +6,10 @@ exports.default = async function notarizing(context) {
console.log('Skipping notarization: not on CI.');
return;
}
if (process.env.IS_FORK === 'true') {
console.log('Skipping the app notarization: building from a fork.');
return;
}
const { electronPlatformName, appOutDir } = context;
if (electronPlatformName !== 'darwin') {
return;