mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-04 05:53:21 +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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user