@@ -150,11 +150,6 @@ To obtain the Static Linux SDK:
150
150
* For previous releases, navigate to "Previous Releases" on the
151
151
installation page.
152
152
153
- * For development snapshots, access the static-sdk YAML file for your
154
- target branch (e.g., swift-6.2-branch snapshots
155
- [ here] ( https://github.com/swiftlang/swift-org-website/blob/main/_data/builds/swift-6_2-branch/static-sdk.yml ) )
156
- to quickly construct the install command (following the pattern
157
- explained below) by browsing the available checksums.
158
153
159
154
#### (4) Installation Commands Pattern
160
155
@@ -167,10 +162,20 @@ $ swift sdk install <URL-or-filename-here> [--checksum <checksum-for-archive-URL
167
162
You can provide either a URL (with corresponding checksum) or a local
168
163
filename where the SDK can be found.
169
164
170
- For example, if you have installed the ` swift-6.1.2-RELEASE ` toolchain, you would enter:
165
+ <!--
166
+ {% assign platform = site.data.builds.swift_releases.last.platforms | where: 'name', 'Static SDK'| first %}
167
+ {% assign tag = site.data.builds.swift_releases.last.tag %}
168
+ {% assign tag_downcase = site.data.builds.swift_releases.last.tag | downcase %}
169
+ {% assign base_url = "https://download.swift.org/" | append: tag_downcase | append: "/static-sdk/" | append: tag | append: "/" | append: tag %}
170
+ {% assign command = "swift sdk install " | append: base_url | append: "_static-linux-0.0.1.artifactbundle.tar.gz --checksum " | append: platform.checksum %}
171
+
172
+ {% comment %} Generate branch information - ONLY major.minor {% endcomment %}
173
+ -->
174
+
175
+ For example, if you have installed the {{ tag }} toolchain, you would enter:
171
176
172
177
``` console
173
- $ swift sdk install https://download.swift.org/swift-6.1.2-release/static-sdk/swift-6.1.2-RELEASE/swift-6.1.2-RELEASE_static-linux-0.0.1.artifactbundle.tar.gz --checksum df0b40b9b582598e7e3d70c82ab503fd6fbfdff71fd17e7f1ab37115a0665b3b
178
+ $ {{ command }}
174
179
```
175
180
176
181
This will download and install the corresponding Static Linux SDK on
0 commit comments