Fix URL #3 for eza

This commit is contained in:
Lockszmith (@VAST) 2025-04-09 13:40:56 -04:00
parent b6c3989d1c
commit 8d1258e0ca
1 changed files with 4 additions and 2 deletions

View File

@ -88,13 +88,15 @@
"refreshPeriod" $defaultRefresh "refreshPeriod" $defaultRefresh
) -}}{{- end -}}{{- end -}}{{- end -}} ) -}}{{- end -}}{{- end -}}{{- end -}}
{{ $myArch = (printf "%s-%s" .sz.os.arch_alt "unknown-linux-gnu" )}}
{{- with $app_name := "eza" -}} {{- with $app_name := "eza" -}}
{{- with $repo := (printf "%s/%s" "eza-community" $app_name) -}} {{- with $repo := (printf "%s/%s" "eza-community" $app_name) -}}
{{- with $version := (gitHubLatestRelease $repo).GetTagName -}} {{- with $version := (gitHubLatestRelease $repo).GetTagName -}}
{{- $_ := set $externals (printf ".local/bin/%s" $app_name) (dict {{- $_ := set $externals (printf ".local/bin/%s" $app_name) (dict
"type" "archive-file" "type" "archive-file"
"url" (printf "https://github.com/%s/releases/download/%s/%s-%s.tar.gz" $repo $version $app_name $myArch) "url" (printf "https://github.com/%s/releases/download/%s/%s_%s.tar.gz" $repo $version $app_name $myArch)
"path" (printf "%s-%s-%s/%s" $app_name $version $myArch $app_name) "path" (printf "./%s" $app_name)
"executable" true "executable" true
"refreshPeriod" $defaultRefresh "refreshPeriod" $defaultRefresh
) -}}{{- end -}}{{- end -}}{{- end -}} ) -}}{{- end -}}{{- end -}}{{- end -}}