diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-11-09 20:10:02 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-11-09 20:10:02 -0200 |
commit | 3ea9a831284da8d4d0710e40f4d56a3d54c79fc3 (patch) | |
tree | cb8cf162e03fa4e3e0e9326ebc62607e742a0368 /share/hoarder/signal-cli/unix/linux/debian | |
parent | 5a538984ec71b08d065a2882d9eb289e9b218cce (diff) | |
download | trashman-3ea9a831284da8d4d0710e40f4d56a3d54c79fc3.tar.gz trashman-3ea9a831284da8d4d0710e40f4d56a3d54c79fc3.tar.bz2 |
Adds signal-cli
Diffstat (limited to 'share/hoarder/signal-cli/unix/linux/debian')
-rwxr-xr-x | share/hoarder/signal-cli/unix/linux/debian/install | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/share/hoarder/signal-cli/unix/linux/debian/install b/share/hoarder/signal-cli/unix/linux/debian/install new file mode 100755 index 0000000..48c5d76 --- /dev/null +++ b/share/hoarder/signal-cli/unix/linux/debian/install @@ -0,0 +1,37 @@ +#!/usr/bin/env sh +# +# Install signal-cli +# + +# Parameters +SHARE="$1" +LIB="$2" + +# Include basic functions +. $LIB/trashman/functions || exit 1 +. $LIB/trashman/debian || exit 1 + +# Requirements +trashman_apt_install_packages gradle + +# Go to working folder +mkdir -p $HOME/.local/share +cd $HOME/.local/share + +# Get the code +if [ -d "signal-cli" ]; then + cd signal-cli && git pull || exit 1 +else + git clone https://github.com/AsamK/signal-cli && cd signal-cli || exit 1 +fi + +# Build +./gradlew build +./gradlew installDist + +# Create symlink to scripts +mkdir -p $HOME/.local/bin +cd $HOME/.local/bin +ln -sf $HOME/.local/share/signal-cli/build/install/signal-cli/bin/signal-cli +#echo "cd $HOME/.local/share/signal-cli/build/install/signal-cli/bin/signal-cli && ./signal-cli" > signal-cli +chmod +x signal-cli |