Support dynamic resource selection

This commit is contained in:
Ohad Livne 2026-01-29 23:15:28 +02:00
parent c16e517a9c
commit 040f83561c
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
6 changed files with 29 additions and 11 deletions

View file

@ -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