Support dynamic resource selection
This commit is contained in:
parent
4cc2af055d
commit
0e61f5f32f
6 changed files with 29 additions and 11 deletions
|
|
@ -5,7 +5,10 @@ IFS=$'\n\t'
|
|||
|
||||
package=rust-analyzer
|
||||
repo=rust-lang/rust-analyzer
|
||||
resource=rust-analyzer-x86_64-unknown-linux-gnu.gz
|
||||
|
||||
rust_analyzer_resource() {
|
||||
echo "rust-analyzer-x86_64-unknown-linux-gnu.gz"
|
||||
}
|
||||
|
||||
install_rust_analyzer() {
|
||||
tempfile="$(mktemp)"
|
||||
|
|
@ -14,4 +17,4 @@ install_rust_analyzer() {
|
|||
mv "${tempfile}" "$(systemd-path user-binaries)"/rust-analyzer
|
||||
}
|
||||
|
||||
github_update "${package}" "${repo}" "${resource}" install_rust_analyzer
|
||||
github_update "${package}" "${repo}" rust_analyzer_resource install_rust_analyzer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue