Set up automated updates for GitHub-sourced binaries
This commit is contained in:
parent
4810683763
commit
77a5e344ae
7 changed files with 75 additions and 9 deletions
14
.local/share/github-versions/rust-analyzer
Executable file
14
.local/share/github-versions/rust-analyzer
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#! /usr/bin/sh
|
||||
|
||||
package=rust-analyzer
|
||||
repo=rust-lang/rust-analyzer
|
||||
resource=rust-analyzer-x86_64-unknown-linux-gnu.gz
|
||||
|
||||
install_rust_analyzer() {
|
||||
tempfile="$(mktemp)"
|
||||
gunzip --to-stdout - > "${tempfile}"
|
||||
chmod 550 "${tempfile}"
|
||||
mv "${tempfile}" "$(systemd-path user-binaries)"/rust-analyzer
|
||||
}
|
||||
|
||||
github_update "${package}" "${repo}" "${resource}" install_rust_analyzer
|
||||
Loading…
Add table
Add a link
Reference in a new issue