Install SimpleX Chat from the GitHub repository
This commit is contained in:
parent
34d62d92b2
commit
6ca9d88995
1 changed files with 20 additions and 0 deletions
20
.local/share/github-versions/simplex-chat
Executable file
20
.local/share/github-versions/simplex-chat
Executable file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue