mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Merge pull request #10580 from vector-im/jryans/linux-electron-5-sandbox
Set SUID bit on chrome-sandbox for Debian
This commit is contained in:
commit
8824f7edee
2 changed files with 17 additions and 0 deletions
14
electron_app/build/linux/after-install.tpl
Normal file
14
electron_app/build/linux/after-install.tpl
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Link to the binary
|
||||||
|
ln -sf '/opt/${productFilename}/${executable}' '/usr/bin/${executable}'
|
||||||
|
|
||||||
|
# SUID chrome-sandbox for Electron 5+
|
||||||
|
# Remove this entire file (after-install.tpl) and remove the reference in
|
||||||
|
# package.json once this change has been upstreamed so we go back to the copy
|
||||||
|
# from upstream.
|
||||||
|
# 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
|
|
@ -175,6 +175,9 @@
|
||||||
"StartupWMClass": "riot"
|
"StartupWMClass": "riot"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"deb": {
|
||||||
|
"afterInstall": "electron_app/build/linux/after-install.tpl"
|
||||||
|
},
|
||||||
"mac": {
|
"mac": {
|
||||||
"category": "public.app-category.social-networking"
|
"category": "public.app-category.social-networking"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue