mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
56674ea708
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 https://github.com/vector-im/riot-web/issues/10509
13 lines
449 B
Smarty
13 lines
449 B
Smarty
#!/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
|