Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Commit

Permalink
debian-installer: add apt repo for debian
Browse files Browse the repository at this point in the history
  • Loading branch information
priyank-p committed Dec 5, 2017
1 parent 10ef627 commit fe9c66d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
"maintainer": "Akash Nimare <svnitakash@gmail.com>"
},
"deb": {
"synopsis": "Zulip Desktop App"
"synopsis": "Zulip Desktop App",
"afterInstall": "./scripts/debian-add-repo.sh"
},
"dmg": {
"background": "build/appdmg.png",
Expand Down
7 changes: 7 additions & 0 deletions scripts/debian-add-repo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

if ! grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep zulip; then
sudo apt-key adv --keyserver pool.sks-keyservers.net --recv 69AD12704E71A4803DCA3A682424BE5AE9BD10D9
echo "deb https://dl.bintray.com/zulip/debian/ stable main" | \
sudo tee -a /etc/apt/sources.list.d/zulip.list
fi

0 comments on commit fe9c66d

Please sign in to comment.