add cordless app

pull/39/head
Botspot 4 years ago
parent ae05b590a4
commit 465c733ce5

@ -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.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

@ -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

@ -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."

@ -0,0 +1 @@
https://github.com/Bios-Marcel/cordless#building-from-source
Loading…
Cancel
Save