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=uv
|
||||
repo=astral-sh/uv
|
||||
resource=uv-x86_64-unknown-linux-gnu.tar.gz
|
||||
|
||||
uv_resource() {
|
||||
echo "uv-x86_64-unknown-linux-gnu.tar.gz"
|
||||
}
|
||||
|
||||
install_uv() {
|
||||
tempdir="$(mktemp --directory)"
|
||||
|
|
@ -14,4 +17,4 @@ install_uv() {
|
|||
mv --force "${tempdir}"/uv "${tempdir}"/uvx "$(systemd-path user-binaries)"
|
||||
}
|
||||
|
||||
github_update "${package}" "${repo}" "${resource}" install_uv
|
||||
github_update "${package}" "${repo}" uv_resource install_uv
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue