Add lnav to chezmoiexternal
This commit is contained in:
parent
a0e18c57ae
commit
76f3896338
|
@ -292,6 +292,32 @@
|
||||||
) -}}
|
) -}}
|
||||||
{{- end -}}{{- end -}}{{- end -}}
|
{{- end -}}{{- end -}}{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
# valid arch strings:
|
||||||
|
# aarch64-macos
|
||||||
|
# x86_64-macos
|
||||||
|
# linux-musl-arm64
|
||||||
|
# linux-musl-x86_64
|
||||||
|
*/}}
|
||||||
|
|
||||||
|
{{- if (eq .chezmoi.os "darwin" ) -}}
|
||||||
|
{{- $myArch = list .sz.os.arch_alt "macos" | join "-" -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- $myArch = list .chezmoi.os .chezmoi.arch | join "-" -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- with $app_name := "lnav" -}}
|
||||||
|
{{- with $repo := (printf "%s/%s" "tstack" $app_name) -}}
|
||||||
|
{{- with $version := trimPrefix "v" (gitHubLatestRelease $repo).GetTagName -}}
|
||||||
|
{{- $_ := set $externals (printf ".local/bin/%s" $app_name) (dict
|
||||||
|
"type" "archive-file"
|
||||||
|
"url" (printf "https://github.com/%s/releases/download/v%s/%s-%s-%s.zip" $repo $version $app_name $version $myArch)
|
||||||
|
"path" (printf "%s-%s/%s" $app_name $version $app_name)
|
||||||
|
"executable" true
|
||||||
|
"refreshPeriod" $defaultRefresh
|
||||||
|
) -}}{{- end -}}{{- end -}}{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
# valid arch strings:
|
# valid arch strings:
|
||||||
# darwin-amd64
|
# darwin-amd64
|
||||||
|
|
Loading…
Reference in New Issue