{{ $platform := .platform }} {{ $selectedId := "" }}{{ with $platform }}{{ $selectedId = .id }}{{ end }}

{{ with $platform }}{{ .title }}{{ else }}Use LBRY on your preferred platform{{ end }}

{{ with $platform }}
{{ if .types }} {{ $selected := . }} {{ range $index, $type := .types }} {{ $asset := index (where (where (where hugo.Data.downloads.options "product" "LBRY") "os" $selected.os) "type" $type) 0 }} {{ if eq $selected.id "linux" }}Download {{ $type }}{{ else }}Download for {{ $selected.name }}{{ end }} {{ end }}
Version {{ path.Base (index (where (where hugo.Data.downloads.options "product" "LBRY") "os" .os) 0).release }}
{{ if eq .id "osx" }}Works with with macOS version 10.12.4 (Sierra), and higher.{{ end }} {{ if eq .id "linux" }}For other Linux flavors including Arch and Flatpak support or compiling from source, see our GitHub install page.{{ end }}
{{ else if eq .id "android" }} Download Download

You can also download our Android app directly.

{{ else }} Download {{ end }}
{{ if .screenshot }}
Screenshot of {{ if eq .id
{{ else }} {{ end }}
{{ end }}
{{ partial "downloads/choices.html" (dict "selected" $selectedId) }}