Conversation
| 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, |
There was a problem hiding this comment.
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.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
| # 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 |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
There was a problem hiding this comment.
macOS, Windows, Ubuntu and Fedora versions work fine.
|
@ravicious See the table below for backport results.
|
* 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>
* 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>
This fixes Dependabot alerts about the tar package: