mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-01 12:33:31 +00:00
scripts: Synchronize Debian scripts with electron-builder 22.4.1.
Fixes #912. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
@@ -3,8 +3,13 @@
|
||||
# This script runs when user install the debian package
|
||||
|
||||
# Link to the binary
|
||||
ln -sf '/opt/${productFilename}/${executable}' '/usr/local/bin/${executable}';
|
||||
echo 'Successfully added /opt/${productFilename}/${executable} to /usr/local/bin/${executable}'
|
||||
ln -sf '/opt/${productFilename}/${executable}' '/usr/bin/${executable}'
|
||||
|
||||
# SUID chrome-sandbox for Electron 5+
|
||||
chmod 4755 '/opt/${productFilename}/chrome-sandbox' || true
|
||||
|
||||
update-mime-database /usr/share/mime || true
|
||||
update-desktop-database /usr/share/applications || true
|
||||
|
||||
# Install apt repository source list if it does not exist
|
||||
if ! grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep zulip.list; then
|
||||
|
||||
@@ -31,5 +31,4 @@ if [ -d $appDirectory ]; then
|
||||
fi
|
||||
|
||||
# Delete the link to the binary
|
||||
echo 'Removing binary link'
|
||||
sudo rm -f '/usr/local/bin/${executable}';
|
||||
rm -f '/usr/bin/${executable}'
|
||||
|
||||
Reference in New Issue
Block a user