Skip to content

Commit

Permalink
Tidy up architecture names a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Dec 13, 2023
1 parent d8f4f24 commit af473ed
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
26 changes: 23 additions & 3 deletions script/release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ func archWeight(arch string) int {
return 3
case "arm":
return 4
case "loong64":
return 10
case "loong64", "mips64", "mips64le", "ppc64", "ppc64le", "riscv64":
return 5
}
return 9
}
Expand Down Expand Up @@ -177,6 +177,26 @@ func humanReadableArch(arch string) string {
return "ARM (64-bit)"
case "universal":
return "Universal"
case "loong64":
return "Loong64"
case "riscv":
return "RISC-V (32 bit)"
case "riscv64":
return "RISC-V (64-bit)"
case "ppc64":
return "PowerPC (64-bit)"
case "ppc64le":
return "PowerPC (64-bit LE)"
case "mips64":
return "MIPS (64-bit)"
case "mips64le":
return "MIPS (64-bit LE)"
case "mips":
return "MIPS (32-bit)"
case "mipsle":
return "MIPS (32-bit LE)"
case "s390x":
return "IBM zSeries (64-bit)"
}
return strings.ToUpper(arch)
return arch
}
3 changes: 2 additions & 1 deletion themes/default/layouts/shortcodes/release.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ <h5>Syncthing <b>{{.version}}</b></h5>
<dt>{{.os}}</dt>
<dd>{{ range $i, $a := .assets }}
{{ if gt $i 0 }} &sdot; {{ end }}
<a href="{{$a.url}}">{{$a.arch}}</a>
<!-- The weird replace thing is to make spaces and dashes non-breaking so we avoid misleading-looking architecture names in the list -->
<a href="{{$a.url}}">{{replace (replace $a.arch " " "&nbsp;") "-" "&#8209;" | safe.HTML}}</a>
{{ end }}</dd>
</dl>
{{ end }}
Expand Down

0 comments on commit af473ed

Please sign in to comment.