-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binary sign default plugins #8040
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ources" This reverts commit b6a53f9.
correctly navigate to desktop directory for CI building after building default plugins for CI
Mac signing is passing/success if we pass unzipped contents for signing - https://github.com/laurent22/joplin/actions/runs/4685750187/jobs/8303152561?pr=8048 |
We will do it differently |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Better version of #8016
Problem
Mac app signing fails when extra binaries are included in the app bundle.
Simple Backup
plugin uses7zip
binary for its functionality. When bundling this plugin as a default plugin, mac app signing fails because the7zip
binary is not signed by current build process. Related to #7934Solution
This PR tries to solve the issue by doing the following.
@electron/[email protected]
version from[email protected]
.@electron/osx-sign
- https://www.electron.build/configuration/mac.html, https://github.com/electron/osx-sign#usage.Current joplin app has
[email protected]
as a transitive/indirect dependency included byelectron-builder@v23
. As per this github issue comment - electron-userland/electron-builder#4656 (comment),electron-osx-sign
made a patch previously addressing the binary signing issue. This PR upgrades toelectron-builder@v24
, which bundles the latest package/namespace@electron/[email protected]
as its dependency.After upgrading the package, the listed
osx-sign
package dependency listed byyarn why
isTesting
After upgrading the package, package was built on a mac machine manually and it succeded. It is not possible to locally sign the app package because of lack of a valid developer credentials. For more details, please check the log below
• skipped macOS application code signing reason=cannot find valid "Developer ID Application" identity or custom non-Apple code signing certificate, it could cause some undefined behaviour, e.g. macOS localized description not visible, see https://electron.build/code-signing allIdentities= 0 identities found Valid identities only 0 valid identities found
This PR has to be tested with existing CI setup or a local machine, which has valid mac developer credentials.
Miscellaneous
[email protected]
is currently published withnext
tag on npm - https://www.npmjs.com/package/electron-builder?activeTab=versions. The download count suggests that people are actively using24.x
. In case this PR works, but onlylatest
tag version has to be used, this PR has to wait tillv24
is bumped tolatest
tag.@electron/notarize
is the new recommended namespace and this PR upgrades to this new namespace fromelectron-notarize
.mac.binaries
field in thepackage.json
.@electron/rebuild
is the new recommended namespace and this PR upgrades to this new namespace fromelectron-rebuild
. One of the warnings when building withelectron-builder
is@electron/rebuild is already incorporated into electron-builder, please consider to remove excess dependency from devDependencies
. Maybe, this dependency has to be removed in the future. For now, the package is upgraded to latest version matching the internal dependency of electron-builder.