Skip to content

Commit 7c0a2e1

Browse files
authored
Fix swiftlang#394, aarch64 download links broken (swiftlang#396)
Fixed aarch64 download links for the current stable release. Motivation: Currently the `x86_64` and `aarch64` downloads for the current release point both to the `x86_64` download artifact for the release. Modifications: Added a condition in the download template which appends the arch to the url if it's not the default `x86_64` Result: Download links for `aarch64` will point to `aarch64` downlaod artifacts and `x86_64` to the `x86_64` ones. Signed-off-by: paulober <[email protected]>
1 parent 3f9ee07 commit 7c0a2e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

download/_build-platform.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
{% assign platform_name_url = platform.name | remove: '.' | remove: ' ' | downcase %}
4747
{% assign platform_name = platform.name | remove : ' ' | downcase %}
4848
{% endif %}
49+
{% if arch != "x86_64" %}
50+
{% assign platform_name_url = platform_name_url | append: "-" | append: arch %}
51+
{% assign platform_name = platform_name | append: "-" | append: arch %}
52+
{% endif %}
4953
{% assign tag_downcase = include.platform.tag | downcase %}
5054
<a href="https://download.swift.org/{{ tag_downcase }}/{{ platform_name_url }}/{{ include.platform.tag}}/{{ include.platform.tag}}-{{ platform_name }}.{{ package_extension }}">{{ arch }}</a>
5155
<a href="https://download.swift.org/{{ tag_downcase }}/{{ platform_name_url }}/{{ include.platform.tag}}/{{ include.platform.tag}}-{{ platform_name }}.{{ package_extension }}.sig" title="PGP Signature" class="signature">Signature ({{ arch }})</a>

0 commit comments

Comments
 (0)