Skip to content

Commit f225592

Browse files
committed
Address PR feedback in wasm-getting-started.md
1 parent 38b88f1 commit f225592

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

documentation/articles/wasm-getting-started.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,15 @@ The distributed artifact bundles also include support for the experimental Embed
2626

2727
4. Run a command in your terminal application to install Swift SDKs for Wasm.
2828

29+
{% assign platform = site.data.builds.swift_releases.last.platforms | where: 'name', 'Wasm'| first %}
30+
{% assign tag = site.data.builds.swift_releases.last.tag %}
31+
{% assign tag_downcase = site.data.builds.swift_releases.last.tag | downcase %}
32+
33+
{% assign base_url = "https://download.swift.org/" | append: tag_downcase | append: "/wasm/" | append: tag | append: "/" | append: tag %}
34+
{% assign command = "swift sdk install " | append: base_url | append: "_wasm.artifactbundle.tar.gz --checksum " | append: platform.checksum %}
35+
2936
```
30-
swift sdk install https://download.swift.org/swift-6.2-release/wasm/swift-6.2-RELEASE/swift-6.2-RELEASE_wasm.artifactbundle.tar.gz --checksum fe4e8648309fce86ea522e9e0d1dc48e82df6ba6e5743dbf0c53db8429fb5224
37+
{{ command }}
3138
```
3239

3340
6. Run `swift sdk list` to verify the Swift SDK was installed and note its ID in the output. Two Swift SDKs will be installed,

0 commit comments

Comments
 (0)