Skip to content

Update electron-builder to 26.6.0#63232

Merged
ravicious merged 5 commits intomasterfrom
r7s/update-electron-builder
Jan 28, 2026
Merged

Update electron-builder to 26.6.0#63232
ravicious merged 5 commits intomasterfrom
r7s/update-electron-builder

Conversation

@ravicious
Copy link
Copy Markdown
Member

@ravicious ravicious added the no-changelog Indicates that a PR does not require a changelog entry label Jan 28, 2026
@ravicious ravicious requested review from r0mant and zmb3 as code owners January 28, 2026 10:51
@github-actions github-actions Bot requested a review from rudream January 28, 2026 10:51
Comment on lines +131 to +134
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,
Copy link
Copy Markdown
Member Author

@ravicious ravicious Jan 28, 2026

Choose a reason for hiding this comment

The 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 com.apple.security.cs.disable-library-validation entitlement to work properly when hardened runtime is on.

This is not needed in "prod" (for both dev and prod builds) where we do provide a signing identity.

@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​electron-builder@​26.0.12 ⏵ 26.6.099 +110069 +198 +1100

View full report

# Remove previous link if it doesn't use update-alternatives
if [ -L "$BIN/${executable}" -a -e "$BIN/${executable}" -a "`readlink "$BIN/${executable}"`" != "/etc/alternatives/${executable}" ]; then
# shellcheck disable=SC2154 # This is custom electron-builder macro expansion, not Bash templating.
if [ -L "$BIN/${executable}" ] && [ -e "$BIN/${executable}" ] && [ "$(readlink "$BIN/${executable}")" != "/etc/alternatives/${executable}" ]; then
Copy link
Copy Markdown
Member Author

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-sh checks these scripts.

This was the only change that I had to apply, shellcheck was outputting this:

In ./web/packages/teleterm/build_resources/linux/after-install.sh.tmpl line 73:
  if [ -L "$BIN/${executable}" -a -e "$BIN/${executable}" -a "`readlink "$BIN/${executable}"`" != "/etc/alternatives/${executable}" ]; then
                ^-----------^ SC2154 (warning): executable is referenced but not assigned.
                               ^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
                                                          ^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
                                                              ^-----------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.

Did you mean:
  if [ -L "$BIN/${executable}" -a -e "$BIN/${executable}" -a "$(readlink "$BIN/${executable}")" != "/etc/alternatives/${executable}" ]; then

"@xterm/xterm": "^6.0.0",
"electron": "39.2.2",
"electron-builder": "^26.0.12",
"electron-builder": "^26.6.0",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

macOS, Windows, Ubuntu and Fedora versions work fine.

@ravicious ravicious enabled auto-merge January 28, 2026 14:28
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from rudream January 28, 2026 15:03
@ravicious ravicious added this pull request to the merge queue Jan 28, 2026
Merged via the queue into master with commit e0dfe30 Jan 28, 2026
47 checks passed
@ravicious ravicious deleted the r7s/update-electron-builder branch January 28, 2026 15:18
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@ravicious See the table below for backport results.

Branch Result
branch/v17 Failed
branch/v18 Failed

cthach pushed a commit that referenced this pull request Jan 29, 2026
* Update electron-builder to 26.6.0

* Add special entitlements for ad-hoc signed builds

* Add special entitlements for main app too

* Add commit hashes to Linux scripts

* Check Linux scripts with shellcheck

---------

Co-authored-by: Grzegorz Zdunek <grzegorz.zdunek@goteleport.com>
mmcallister pushed a commit that referenced this pull request Apr 28, 2026
* Update electron-builder to 26.6.0

* Add special entitlements for ad-hoc signed builds

* Add special entitlements for main app too

* Add commit hashes to Linux scripts

* Check Linux scripts with shellcheck

---------

Co-authored-by: Grzegorz Zdunek <grzegorz.zdunek@goteleport.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/branch/v17 backport/branch/v18 no-changelog Indicates that a PR does not require a changelog entry size/sm ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants