dotfiles/.local/share/github-versions/simplex-chat

20 lines
415 B
Bash
Executable file

#! /usr/bin/bash
set -euo pipefail
IFS=$'\n\t'
package=simplex-chat
repo=simplex-chat/simplex-chat
sc_resource() {
echo "simplex-chat-ubuntu-24_04-x86_64"
}
install_sc() {
tempfile="$(mktemp)" && \
cat - > "${tempfile}" && \
chmod 550 "${tempfile}" && \
mv "${tempfile}" "$(systemd-path user-binaries)"/simplex-chat
}
github_update "${package}" "${repo}" sc_resource install_sc