diff --git a/apps/Browsh/description b/apps/Browsh/description new file mode 100644 index 0000000..cc423b5 --- /dev/null +++ b/apps/Browsh/description @@ -0,0 +1,7 @@ +The modern text-based terminal browser. +Browsh is a modern text-based browser for the terminal. It renders anything that a modern browser can; HTML5, CSS3, JS, video and even WebGL. Its main purpose is to be run on a remote server and accessed via SSH/Mosh or the in-browser HTML service in order to significantly reduce bandwidth and thus both increase browsing speeds and decrease bandwidth costs. + +To run: Menu -> Internet -> Browsh +To run in a terminal: browsh + +NOTE: This will also install firefox-esr diff --git a/apps/Browsh/icon-24.png b/apps/Browsh/icon-24.png new file mode 100644 index 0000000..3be29fa Binary files /dev/null and b/apps/Browsh/icon-24.png differ diff --git a/apps/Browsh/icon-64.png b/apps/Browsh/icon-64.png new file mode 100644 index 0000000..f5aa9d3 Binary files /dev/null and b/apps/Browsh/icon-64.png differ diff --git a/apps/Browsh/install-32 b/apps/Browsh/install-32 new file mode 100755 index 0000000..3d562f8 --- /dev/null +++ b/apps/Browsh/install-32 @@ -0,0 +1,25 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +# Get dependencies +"${DIRECTORY}/pkg-install" "firefox-esr" "$(dirname "$0")" || exit 1 + +wget https://github.com/browsh-org/browsh/releases/download/v1.6.4/browsh_1.6.4_linux_armv7.deb || error 'Failed to download browsh!' +sudo dpkg -i browsh_1.6.4_linux_armv7.deb || error 'Failed to install browsh!' +rm browsh_1.6.4_linux_armv7.deb +echo "[Desktop Entry] +Version=1.1 +Type=Application +Name=Browsh +Comment=The modern text-based terminal browser. +Icon=$(dirname "$0")/icon-64.png +Exec=browsh +Terminal=true +Categories=Network;" > ~/.local/share/applications/browsh.desktop + diff --git a/apps/Browsh/install-64 b/apps/Browsh/install-64 new file mode 100755 index 0000000..7ba58cb --- /dev/null +++ b/apps/Browsh/install-64 @@ -0,0 +1,26 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +# Get dependencies +"${DIRECTORY}/pkg-install" "firefox-esr" "$(dirname "$0")" || exit 1 + +wget https://github.com/browsh-org/browsh/releases/download/v1.6.4/browsh_1.6.4_linux_arm64.deb || error 'Failed to download browsh!' +sudo dpkg -i browsh_1.6.4_linux_arm64.deb || error 'Failed to install browsh!' +rm browsh_1.6.4_linux_arm64.deb +echo "[Desktop Entry] +Version=1.1 +Type=Application +Name=Browsh +Comment=The modern text-based terminal browser. +Icon=$(dirname "$0")/icon-64.png +Exec=browsh +Terminal=true +Actions= +Categories=Network;" > ~/.local/share/applications/browsh.desktop + diff --git a/apps/Browsh/uninstall b/apps/Browsh/uninstall new file mode 100755 index 0000000..20c717a --- /dev/null +++ b/apps/Browsh/uninstall @@ -0,0 +1,14 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +sudo apt purge -y browsh || error 'Failed to remove browsh!' +sudo rm ~/.local/share/applications/browsh.desktop + +#if your app installs any packages, keep this command here so those packages will be removed. +"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1 diff --git a/apps/Browsh/website b/apps/Browsh/website new file mode 100644 index 0000000..c0526a1 --- /dev/null +++ b/apps/Browsh/website @@ -0,0 +1 @@ +https://www.brow.sh/