mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-10-25 05:50:47 +00:00
Skip app notarization when packaging (#596)
This commit is contained in:
parent
fe11e885c5
commit
c1c084e1dc
1 changed files with 3 additions and 1 deletions
|
|
@ -19,7 +19,9 @@ const {notarize} = require('electron-notarize');
|
|||
// and `APPLE_PASSWORD`, the password to the account.
|
||||
exports.default = async function(context) {
|
||||
const {electronPlatformName, appOutDir} = context;
|
||||
if (electronPlatformName !== 'darwin') {
|
||||
if (electronPlatformName !== 'darwin' || !process.env.CSC_LINK) {
|
||||
// Skip notarization if not releasing macOS or if the app is unsigned (i.e. packaging).
|
||||
// `CSC_LINK` is the path to a signing certificate; setting it makes Electron sign the app.
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue