diff --git a/config.toml b/config.toml index 043ae25..bef2fec 100755 --- a/config.toml +++ b/config.toml @@ -85,7 +85,7 @@ keepWhitespace = false [caches] [caches.getjson] dir = ":cacheDir/:project" - maxAge = "10s" + maxAge = "300s" [outputFormats] [outputFormats.API] diff --git a/layouts/shortcodes/latest-download.html b/layouts/shortcodes/latest-download.html index 828f882..dfac19d 100755 --- a/layouts/shortcodes/latest-download.html +++ b/layouts/shortcodes/latest-download.html @@ -1,46 +1,46 @@ {{$type := .Get 0}} {{ $url := "https://api.github.com/repos/nroduit/Weasis/releases/latest" }} {{ $jfile := getJSON $url }} - - - - - - - - - - - - -{{ range $elem_index, $elem_val := $jfile }} -{{ if (eq $elem_index "assets") }} - {{ range $burl, $val := sort $elem_val "content_type" }} - {{ $package := path.Ext $val.name }} - {{ if or (eq $package ".msi") (eq $package ".deb") (eq $package ".rpm") (eq $package ".pkg") }} - {{ $arch := printf "%s %s-bit" (cond (or (in $val.name "aarch") (in $val.name "arm")) "arm" "x86") (cond (or (in $val.name "64") (eq $package ".pkg") ) "64" "32") }} - {{ $system := cond (eq $package ".msi") "Windows" (cond (eq $package ".pkg") "macOS" "Linux") }} - {{ $icon := cond (eq $package ".msi") "microsoft" (cond (eq $package ".pkg") "apple" "linux") }} - - - - - - - - - {{ end }} +
Download Weasis DICOM Viewer binaries
SystemArchitecturePackageSizeWeasis installerComments
{{ $system }}{{ $arch }}{{ upper ( substr $package 1 ) }}{{ printf "%.1f MB" (div $val.size 1000000) }} - - {{ $val.name }} - - {{ cond (eq $package ".msi") "Requires Windows 7 or higher" - (cond (eq $package ".pkg") (cond (eq $arch "arm 64-bit") "Requires macOS 11 or higher (Apple Silicon)" "Requires macOS 10.13 or higher" ) - (cond (eq $arch "arm 32-bit") "Requires GLIBC_2.17. Only tested with Raspberry Pi 4" - (cond (eq $arch "arm 64-bit") "Requires GLIBC_2.27" (cond (eq $package ".rpm") "Requires GLIBC_2.17, libstdc++.so.6 and libgcc" "Requires GLIBC_2.17" )))) - }} - .
Checksum sha256 -
+ + + + + + + + + + + + {{ range $elem_index, $elem_val := $jfile }} + {{ if eq $elem_index "assets" }} + {{ range $burl, $val := sort $elem_val "content_type" }} + {{ $package := path.Ext $val.name }} + {{ if or (eq $package ".msi") (eq $package ".deb") (eq $package ".rpm") (eq $package ".pkg") }} + {{ $arch := printf "%s-%s" (cond (or (in $val.name "aarch") (in $val.name "arm")) "arm" "x86") (cond (or (in $val.name "64") (eq $package ".pkg") ) "64" "32") }} + {{ $system := cond (eq $package ".msi") "Windows" (cond (eq $package ".pkg") "macOS" "Linux") }} + {{ $icon := cond (eq $package ".msi") "microsoft" (cond (eq $package ".pkg") "apple" "linux") }} + + + + + + + + + {{ end }} + {{ end }} + {{ end }} {{ end }} -{{ end }} -{{ end }}
Download Weasis DICOM Viewer binaries
SystemArch.Pack.SizeWeasis installerComments
 {{ $system }}{{ $arch }}{{ upper ( substr $package 1 ) }}{{ printf "%.1f MB" (div $val.size 1000000) }} + + {{ $val.name }} + sha256 + {{ cond (eq $package ".msi") "Requires Windows 7 or higher" + (cond (eq $package ".pkg") (cond (eq $arch "arm-64") "Requires macOS 11 or higher (Apple Silicon)" "Requires macOS 10.13 or higher" ) + (cond (eq $arch "arm-32") "Requires GLIBC_2.17. Only tested with Raspberry Pi 4" + (cond (eq $arch "arm-64") "Requires GLIBC_2.27" (cond (eq $package ".rpm") "Requires GLIBC_2.17, libstdc++.so.6 and libgcc" "Requires GLIBC_2.17" )))) + }} +
+ diff --git a/layouts/shortcodes/old-download.html b/layouts/shortcodes/old-download.html index 21e5c58..dfe45df 100755 --- a/layouts/shortcodes/old-download.html +++ b/layouts/shortcodes/old-download.html @@ -1,14 +1,14 @@ {{ $url := "https://api.github.com/repos/nroduit/Weasis/releases" }} {{ $jfile := getJSON $url }} - +
- - - + + + - + @@ -26,27 +26,27 @@ {{ range $burl, $val := sort $rval "content_type" }} {{ $package := path.Ext $val.name }} {{ if or (eq $package ".msi") (eq $package ".deb") (eq $package ".rpm") (eq $package ".pkg") }} - {{ $arch := printf "%s %s-bit" (cond (or (in $val.name "aarch") (in $val.name "arm")) "arm" "x86") (cond (or (in $val.name "64") (eq $package ".pkg") ) "64" "32") }} + {{ $arch := printf "%s-%s" (cond (or (in $val.name "aarch") (in $val.name "arm")) "arm" "x86") (cond (or (in $val.name "64") (eq $package ".pkg") ) "64" "32") }} {{ $system := cond (eq $package ".msi") "Windows" (cond (eq $package ".pkg") "macOS" "Linux") }} {{ $icon := cond (eq $package ".msi") "microsoft" (cond (eq $package ".pkg") "apple" "linux") }} - + - + {{ end }}
Download Weasis DICOM Viewer binaries
SystemArchitecturePackageSystemArch.Pack. SizeWeasis installerWeasis installer Comments
{{ $system }} {{ $system }} {{ $arch }} {{ upper ( substr $package 1 ) }}{{ printf "%.1f MB" (div $val.size 1000000) }}{{ printf "%.1f MB" (div $val.size 1000000) }} - - {{ $val.name }} - + + {{ $val.name }} + {{ $date := time "2024-05-01" }} + {{ if ge (time $elem_val.published_at) $date }} + sha256 + {{ end }} {{ cond ( ge $elem_index 1) "" (cond (eq $package ".msi") "Requires Windows 7 or higher" - (cond (eq $package ".pkg") (cond (eq $arch "arm 64-bit") "Requires macOS 11 or higher (Apple Silicon)" "Requires macOS 10.13 or higher" ) - (cond (eq $arch "arm 32-bit") "Requires GLIBC_2.17. Only tested with Raspberry Pi 4" - (cond (eq $arch "arm 64-bit") "Requires GLIBC_2.27" (cond (eq $package ".rpm") "Requires GLIBC_2.17, libstdc++.so.6 and libgcc" "Requires GLIBC_2.17" ))))) + (cond (eq $package ".pkg") (cond (eq $arch "arm-64") "Requires macOS 11 or higher (Apple Silicon)" "Requires macOS 10.13 or higher" ) + (cond (eq $arch "arm-32") "Requires GLIBC_2.17. Only tested with Raspberry Pi 4" + (cond (eq $arch "arm-64") "Requires GLIBC_2.27" (cond (eq $package ".rpm") "Requires GLIBC_2.17, libstdc++.so.6 and libgcc" "Requires GLIBC_2.17" ))))) }} - {{ if ( eq $elem_index 0) }} - .
Checksum sha256 - {{ end }}