Add jless

This commit is contained in:
Gal Szkolnik 2025-05-08 22:35:48 +00:00
parent 920ab27cfb
commit e3cf4a97f1
1 changed files with 15 additions and 0 deletions

View File

@ -143,6 +143,21 @@
) -}}
{{- end -}} {{/* linux only */}}
{{/* jless doesn't have -musl release, but has -gnu release in linux */}}
{{- $myArch = $myArch | replace "-musl" "-gnu" -}}
{{- with $app_name := "jless" -}}
{{- with $repo := (printf "%s/%s" "PaulJuliusMartinez" $app_name) -}}
{{- with $version := (gitHubLatestRelease $repo).GetTagName -}}
{{- $_ := set $externals (printf ".local/bin/%s" $app_name) (dict
"type" "archive-file"
"url" (printf "https://github.com/%s/releases/download/%s/%s-%s-%s.zip" $repo $version $app_name $version $myArch)
"path" (printf "%s" $app_name)
"executable" true
"refreshPeriod" $defaultRefresh
) -}}{{- end -}}{{- end -}}{{- end -}}
{{/*
# valid arch strings:
# darwin_amd64