diff --git a/apps/Cordless/description b/apps/Cordless/description new file mode 100644 index 0000000..488563d --- /dev/null +++ b/apps/Cordless/description @@ -0,0 +1,2 @@ +Custom Discord client that aims to have a low memory footprint and be aimed at power-users. +Logging into Cordless with your Discord account technically violates Discord's Terms of Use. Use at your own risk. diff --git a/apps/Cordless/icon-24.png b/apps/Cordless/icon-24.png new file mode 100644 index 0000000..b59e53e Binary files /dev/null and b/apps/Cordless/icon-24.png differ diff --git a/apps/Cordless/icon-64.png b/apps/Cordless/icon-64.png new file mode 100644 index 0000000..1398340 Binary files /dev/null and b/apps/Cordless/icon-64.png differ diff --git a/apps/Cordless/install b/apps/Cordless/install new file mode 100755 index 0000000..10ae19f --- /dev/null +++ b/apps/Cordless/install @@ -0,0 +1,34 @@ +#!/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" "xclip wl-clipboard feh" "$(dirname "$0")" || exit 1 + +if [ ! -d /usr/local/go ]; then + echo -e "\nInstalling Go." + wget -q --show-progress -O /tmp/go.tar.gz https://golang.org/dl/go1.14.6.linux-armv6l.tar.gz + sudo tar -C /usr/local -xzf /tmp/go.tar.gz && rm /tmp/go.tar.gz + echo + /usr/local/go/bin/go version || error "Failed to install go somehow!" +else + echo "Go is already installed. Moving to next step." +fi + +echo -e "\nDownloading Cordless." +GO111MODULE=on /usr/local/go/bin/go get -u "github.com/Bios-Marcel/cordless" +echo "[Desktop Entry] +Name=Cordless +Exec=${HOME}/go/bin/cordless +Path=${HOME}/go/bin/ +Icon=terminal +Type=Application +Comment=Cordless is a custom Discord client that aims to have a low memory footprint and be aimed at power-users. +Categories=Network +Terminal=true +X-KeepTerminal=true" > ~/.local/share/applications/cordless.desktop diff --git a/apps/Cordless/uninstall b/apps/Cordless/uninstall new file mode 100755 index 0000000..9bb4770 --- /dev/null +++ b/apps/Cordless/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 +} + +#if your app installs any packages, keep this command here so those packages will be removed. +"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1 +sudo rm -rf ~/go /usr/local/go ~/.local/share/applications/cordless.desktop #~/.config/cordless + +echo "Removed files." diff --git a/apps/Cordless/website b/apps/Cordless/website new file mode 100644 index 0000000..d58860e --- /dev/null +++ b/apps/Cordless/website @@ -0,0 +1 @@ +https://github.com/Bios-Marcel/cordless#building-from-source