Skip to content

Commit

Permalink
Add ZenBrowser (#6)
Browse files Browse the repository at this point in the history
* Add Zen Browser

* Add bzip2 libasound2 to install_zenbrowser.sh
  • Loading branch information
Fullaxx authored Sep 25, 2024
1 parent adcc342 commit 5b1d598
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions conf/menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<item label="Chromium"><action name="Execute"><command>/app/scripts/chromium.sh</command></action></item>
<item label="Vivaldi"><action name="Execute"><command>/app/scripts/vivaldi.sh</command></action></item>
<item label="Firefox"><action name="Execute"><command>/app/scripts/firefox.sh</command></action></item>
<item label="ZenBrowser"><action name="Execute"><command>/app/scripts/zenbrowser.sh</command></action></item>
<item label="Opera"><action name="Execute"><command>/app/scripts/opera.sh</command></action></item>
<item label="Brave (stable)"><action name="Execute"><command>/app/scripts/brave_release.sh</command></action></item>
<item label="Brave (beta)"><action name="Execute"><command>/app/scripts/brave_beta.sh</command></action></item>
Expand Down
20 changes: 20 additions & 0 deletions scripts/install_zenbrowser.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

set -e

export DEBIAN_FRONTEND="noninteractive"
ZBVERS="1.0.1-a.4"
URL="https://github.com/zen-browser/desktop/releases/download/${ZBVERS}/zen.linux-specific.tar.bz2"

apt-get update
apt-get install -y bzip2 libasound2
apt-get clean

cd /opt
wget ${URL}
tar xf zen.linux-specific.tar.bz2
rm zen.linux-specific.tar.bz2

cd /usr/bin
ln -s /opt/zen/zen zenbrowser

12 changes: 12 additions & 0 deletions scripts/zenbrowser.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

BINARY="zenbrowser"

BINARYLOC=`which ${BINARY}`
if [ "$?" -ne "0" ]; then
set -e

xterm -T InstallZenBrowser -g 100x30 -e sudo /app/scripts/install_zenbrowser.sh
fi

${BINARY}

0 comments on commit 5b1d598

Please sign in to comment.