-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Update electron-builder to 26.6.0 #63232
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
Changes from all commits
8493c8f
81155ce
43c6008
03b1e9a
3499f01
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| <plist version="1.0"> | ||
| <dict> | ||
| <!-- https://github.com/electron/electron-notarize#prerequisites --> | ||
| <key>com.apple.security.cs.allow-jit</key> | ||
| <true/> | ||
| <!-- Needed for an ad-hoc signed build to work with hardened runtime. | ||
| https://github.com/electron-userland/electron-builder/issues/5850#issuecomment-2887254139 --> | ||
| <key>com.apple.security.cs.disable-library-validation</key> | ||
| <true/> | ||
| </dict> | ||
| </plist> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,6 +53,18 @@ if (process.env.TEAMID) { | |
| process.env.APPLE_TEAM_ID = process.env.TEAMID; | ||
| } | ||
|
|
||
| /** | ||
| * Describes whether there will be an attempt by electron-builder to sign the app on macOS. | ||
| */ | ||
| const shouldBeSignedOnMacOS = | ||
| process.env.APPLE_ID || | ||
| process.env.APPLE_APP_SPECIFIC_PASSWORD || | ||
| process.env.APPLE_TEAM_ID; | ||
|
|
||
| const entitlementsMacOS = shouldBeSignedOnMacOS | ||
| ? 'build_resources/entitlements.mac.plist' | ||
| : 'build_resources/entitlements.mac.adhoc-signed.plist'; | ||
|
|
||
| /** | ||
| * @type { import('electron-builder').Configuration } | ||
| */ | ||
|
|
@@ -116,9 +128,10 @@ module.exports = { | |
| notarize: true, | ||
| hardenedRuntime: true, | ||
| gatekeeperAssess: false, | ||
| entitlements: entitlementsMacOS, | ||
| // Use the same entitlements for Electron subprocesses (e.g., renderer, GPU) | ||
| // as those defined for the main app. | ||
| entitlementsInherit: 'build_resources/entitlements.mac.plist', | ||
| entitlementsInherit: entitlementsMacOS, | ||
|
Comment on lines
+131
to
+134
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These changes were discussed here: #62704 (comment) In short, electron-builder used to not sign the app when no signing identity was present. Now it does ad-hoc signing in those cases. When an app is ad-hoc signed, it needs the This is not needed in "prod" (for both dev and prod builds) where we do provide a signing identity. |
||
| // If CONNECT_TSH_APP_PATH is provided, we assume that tsh.app is already signed. | ||
| signIgnore: env.CONNECT_TSH_APP_PATH && ['tsh.app'], | ||
| icon: 'build_resources/icon-mac.png', | ||
|
|
@@ -223,17 +236,17 @@ module.exports = { | |
| }, | ||
| rpm: { | ||
| artifactName: '${name}-${version}.${arch}.${ext}', | ||
| afterInstall: 'build_resources/linux/after-install.tpl', | ||
| afterRemove: 'build_resources/linux/after-remove.tpl', | ||
| afterInstall: 'build_resources/linux/after-install.sh.tmpl', | ||
| afterRemove: 'build_resources/linux/after-remove.sh.tmpl', | ||
| // --rpm-rpmbuild-define "_build_id_links none" fixes the problem with not being able to install | ||
| // Connect's rpm next to other Electron apps. | ||
| // https://github.com/gravitational/teleport/issues/18859 | ||
| fpm: ['--rpm-rpmbuild-define', '_build_id_links none'], | ||
| }, | ||
| deb: { | ||
| artifactName: '${name}_${version}_${arch}.${ext}', | ||
| afterInstall: 'build_resources/linux/after-install.tpl', | ||
| afterRemove: 'build_resources/linux/after-remove.tpl', | ||
| afterInstall: 'build_resources/linux/after-install.sh.tmpl', | ||
| afterRemove: 'build_resources/linux/after-remove.sh.tmpl', | ||
| }, | ||
| linux: { | ||
| target: ['tar.gz', 'rpm', 'deb'], | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,7 +45,7 @@ | |
| "@xterm/addon-fit": "^0.11.0", | ||
| "@xterm/xterm": "^6.0.0", | ||
| "electron": "39.2.2", | ||
| "electron-builder": "^26.0.12", | ||
| "electron-builder": "^26.6.0", | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. macOS, Windows, Ubuntu and Fedora versions work fine. |
||
| "electron-updater": "^6.7.0", | ||
| "electron-vite": "^4.0.1", | ||
| "events": "3.3.0", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I addressed a long standing todo item about making sure that
make lint-shchecks these scripts.This was the only change that I had to apply, shellcheck was outputting this: