-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set SUID bit on chrome-sandbox for Debian
This tweaks Linux packages for Riot to SUID `chrome-sandbox` after install. This is required as of Electron 5 for certain distros, such as Debian. This change has also been provided to `electron-builder` upstream, so ideally they'll include it in the future and this becomes redundant. Fixes #10509
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
# Link to the binary | ||
ln -sf '/opt/${productFilename}/${executable}' '/usr/bin/${executable}' | ||
|
||
# SUID chrome-sandbox for Electron 5+ | ||
# Remove this custom after-install.tpl once this change has been upstreamed | ||
# https://github.com/electron-userland/electron-builder/pull/4163 | ||
chmod 4755 '/opt/${productFilename}/chrome-sandbox' || true | ||
|
||
update-mime-database /usr/share/mime || true | ||
update-desktop-database /usr/share/applications || true |
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