Skip to content

Commit 8824f7e

Browse files
authored
Merge pull request element-hq#10580 from vector-im/jryans/linux-electron-5-sandbox
Set SUID bit on chrome-sandbox for Debian
2 parents 9ed647d + 0617c1c commit 8824f7e

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
# Link to the binary
4+
ln -sf '/opt/${productFilename}/${executable}' '/usr/bin/${executable}'
5+
6+
# SUID chrome-sandbox for Electron 5+
7+
# Remove this entire file (after-install.tpl) and remove the reference in
8+
# package.json once this change has been upstreamed so we go back to the copy
9+
# from upstream.
10+
# https://github.com/electron-userland/electron-builder/pull/4163
11+
chmod 4755 '/opt/${productFilename}/chrome-sandbox' || true
12+
13+
update-mime-database /usr/share/mime || true
14+
update-desktop-database /usr/share/applications || true

‎package.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@
175175
"StartupWMClass": "riot"
176176
}
177177
},
178+
"deb": {
179+
"afterInstall": "electron_app/build/linux/after-install.tpl"
180+
},
178181
"mac": {
179182
"category": "public.app-category.social-networking"
180183
},

0 commit comments

Comments
 (0)