diff --git a/.local/share/github-versions/simplex-chat b/.local/share/github-versions/simplex-chat new file mode 100755 index 0000000..82e7977 --- /dev/null +++ b/.local/share/github-versions/simplex-chat @@ -0,0 +1,20 @@ +#! /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