apache / apache/cordova-electron

Building Release and Debug Version on Mac 10.15.1 Error From Notarizing

Open
#108 2 comments 1 reaction 0 assignees View on GitHub
info-needed
Dominant language
JavaScript
Stars
135
Forks
60
Avg merge
1d 6h
Merged PRs (30d)
5

Description

# Bug Report

## Problem
When signing the build it fails due to electron config and developer ID issues that I believe are related to the new notarizing bug for new mac os

### What is expected to happen?
To properly build a release.
I have a proper Developer ID Certificate from apple all setup

### What does actually happen?
```
cordova build electron
[Cordova Electron] The built package size may be larger than necessary. Please run with --verbose for more details.
• electron-builder version=20.44.4
• writing effective config file=platforms/electron/build/builder-effective-config.yaml
• installing production dependencies platform=darwin arch=x64 appDir=/Users/projects/${PROJECT}/tool_app/platforms/electron/www
• packaging platform=darwin arch=x64 electron=4.0.1 appOutDir=platforms/electron/build/mac
• packaging platform=mas arch=x64 electron=4.0.1 appOutDir=platforms/electron/build/mas
• signing file=platforms/electron/build/mac/Home.app identityName=Developer ID Application: Ltd (*******) identityHash=3B6331A34403D9BE4845BF4ED19BD1E326ED0468 provisioningProfile=salestool.provisionprofile
• signing file=platforms/electron/build/mas/Home.app identityName=Developer ID Application: Ltd (********) identityHash=3B6331A34403D9BE4845BF4ED19BD1E326ED0468 provisioningProfile=salestool.provisionprofile
{ Error: Command failed: spctl --assess --type execute --verbose --ignore-cache --no-cache /Users/projects/${PROJECT}/tool_app/platforms/electron/build/mas/Home.app
/Users/projects/${PROJECT}/tool_app/platforms/electron/build/mas/Home.app: rejected
source=Unnotarized Developer ID
```

## Information
Cordova 9.0.0
Platform Electron 1.1.1

### Command or Code
cordova build electron && cordova build electron --release

### Environment, Platform, Device
Electron

### Version information

This article might point to help, but i couldnt get it to work:
https://kilianvalkhof.com/2019/electron/notarizing-your-electron-application/

## Checklist

- [ X ] I searched for existing GitHub issues
- [ X ] I updated all Cordova tooling to most recent version
- [ X ] I included all the necessary information above

Contributor guide

Open the contributing guide

Research direction

Reproduce `cordova build electron && cordova build electron --release` on Mac 10.15.1 and inspect the generated `platforms/electron/build/builder-effective-config.yaml` alongside the electron-builder signing output. Compare the mac and mas packages and determine what allows the release build to pass the reported notarization assessment; done means the command completes without the `Unnotarized Developer ID` rejection.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, javascript, node.js
Domain
desktop, release, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.