Skip to content

Commit 3eb4cf4

Browse files
committed
Ubuntu: Add Zulip link to the binrary.
Zulip can't be run from the terminal because we were not linking the binary to the bin. The electron-builder used to support this by default but we as we added the afterInstall script it got removed. More info - electron-userland/electron-builder#2682, electron-userland/electron-builder#2689 Fixes #444.
1 parent 2f96ec6 commit 3eb4cf4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

scripts/debian-add-repo.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
# This script runs when user install the debian package
44

5+
# Link to the binary
6+
ln -sf '/opt/${productFilename}/${executable}' '/usr/local/bin/${executable}';
7+
echo 'Successfully added /opt/${productFilename}/${executable} to /usr/local/bin/${executable}'
8+
59
# Install apt repository source list if it does not exist
610
if ! grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep zulip.list; then
711
sudo apt-key adv --keyserver pool.sks-keyservers.net --recv 69AD12704E71A4803DCA3A682424BE5AE9BD10D9

scripts/debian-uninstaller.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,8 @@ appDirectory=/home/$getSudoUser/.config/Zulip/;
2828

2929
if [ -d $appDirectory ]; then
3030
sudo rm -rf $appDirectory;
31-
fi
31+
fi
32+
33+
# Delete the link to the binary
34+
echo 'Removing binary link'
35+
sudo rm -f '/usr/local/bin/${executable}';

0 commit comments

Comments
 (0)