Skip to content

Commit b01fa81

Browse files
committed
Update the install command for Swiftly
1 parent 5e036b8 commit b01fa81

File tree

3 files changed

+34
-17
lines changed

3 files changed

+34
-17
lines changed

_data/builds/swiftly_release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
version: "0.4.0-dev"
1+
version: "1.0.0"
22
platforms:
33
- platform: Linux
4-
x86_64: "https://download.swift.org/swiftly/linux/swiftly-0.4.0-dev-x86_64.tar.gz"
5-
arm64: "https://download.swift.org/swiftly/linux/swiftly-0.4.0-dev-aarch64.tar.gz"
4+
x86_64: "https://download.swift.org/swiftly/linux/swiftly-1.0.0-dev-x86_64.tar.gz"
5+
arm64: "https://download.swift.org/swiftly/linux/swiftly-1.0.0-dev-aarch64.tar.gz"
66
- platform: Darwin
7-
x86_64: "https://download.swift.org/swiftly/darwin/swiftly-0.4.0-dev.pkg"
8-
arm64: "https://download.swift.org/swiftly/darwin/swiftly-0.4.0-dev.pkg"
7+
x86_64: "https://download.swift.org/swiftly/darwin/swiftly-1.0.0-dev.pkg"
8+
arm64: "https://download.swift.org/swiftly/darwin/swiftly-1.0.0-dev.pkg"

_includes/install/_linux_platforms_tabs.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
## Latest Release
2-
<ul class="grid-level-0 grid-layout-2-column">
2+
<ul class="grid-level-0 grid-layout-1-column">
33
<li class="grid-level-1 featured">
44
<h3>Swiftly (recommended)</h3>
55
<p class="description">
66
The Swiftly installer manages Swift and its dependencies. It supports switching between different versions and downloading updates.
77
</p>
8+
<h4>Run this in a terminal:</h4>
9+
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>curl -O https://download.swift.org/swiftly/linux/swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz &amp;&amp; \
10+
tar zxf swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz &amp;&amp; \
11+
./swiftly init --quiet-shell-followup &amp;&amp; \
12+
. ~/.local/share/swiftly/env.sh &amp;&amp; \
13+
hash -r
14+
</code></pre></div></div>
815
<h4>License: <a href="https://raw.githubusercontent.com/swiftlang/swiftly/refs/heads/main/LICENSE.txt">Apache-2.0</a> | PGP: <a href="https://download.swift.org/swiftly/linux/swiftly-0.4.0-dev-x86_64.tar.gz.sig">Signature</a></h4>
9-
<a href="https://download.swift.org/swiftly/linux/swiftly-0.4.0-dev-x86_64.tar.gz" class="cta-secondary">Download</a>
1016
<a href="/install/linux/swiftly" class="cta-secondary">Instructions</a>
1117
</li>
12-
<li class="grid-level-1">
18+
</ul>
19+
<ul class="grid-level-0 grid-layout-1-column">
20+
<li class="grid-level-1">
1321
<h3>Container</h3>
1422
<p class="description">
1523
If you prefer a containerized environment, you can download the official container images for compiling and running Swift on a variety of distributions.

install/macos/index.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,32 @@ title: Install Swift
66
{% include install/_os_tabs.md macos="true" %}
77

88
## Latest Release
9-
<ul class="grid-level-0 grid-layout-2-column">
10-
<li class="grid-level-1">
11-
<h3>Xcode</h3>
12-
<p class="description">
13-
To develop with Swift for Apple platforms, download the latest version of Xcode, which is regularly refreshed with the latest Swift toolchain.
14-
</p>
15-
<a href="https://developer.apple.com/xcode/" class="cta-secondary external">Install Xcode</a>
16-
</li>
9+
<ul class="grid-level-0 grid-layout-1-column">
1710
<li class="grid-level-1 featured">
1811
<h3>Swiftly</h3>
1912
<p class="description">
2013
To download toolchains from Swift.org, use the Swiftly toolchain installer. Swift.org toolchains include experimental features like Embedded Swift and support for WebAssembly.
2114
</p>
22-
<a href="https://download.swift.org/macos/swiftly.pkg" class="cta-secondary">Download</a>
15+
<h4>Run this in a terminal:</h4>
16+
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>curl -O https://download.swift.org/swiftly/darwin/swiftly-{{ site.data.builds.swiftly_release.version }}.pkg &amp;&amp; \
17+
installer -pkg swiftly-{{ site.data.builds.swiftly_release.version }}.pkg -target CurrentUserHomeDirectory &amp;&amp; \
18+
~/usr/local/bin/swiftly init --quiet-shell-followup &amp;&amp; \
19+
. ~/Library/Application\ Support/swiftly/env.sh &amp;&amp; \
20+
hash -r
21+
</code></pre></div></div>
22+
<h4>License: <a href="https://raw.githubusercontent.com/swiftlang/swiftly/refs/heads/main/LICENSE.txt">Apache-2.0</a></h4>
2323
<a href="/install/macos/swiftly" class="cta-secondary">Instructions</a>
2424
</li>
2525
</ul>
26+
<ul class="grid-level-0 grid-layout-1-column">
27+
<li class="grid-level-1">
28+
<h3>Xcode</h3>
29+
<p class="description">
30+
To develop with Swift for Apple platforms, download the latest version of Xcode, which is regularly refreshed with the latest Swift toolchain.
31+
</p>
32+
<a href="https://developer.apple.com/xcode/" class="cta-secondary external">Install Xcode</a>
33+
</li>
34+
</ul>
2635

2736

2837
## Other Install Options

0 commit comments

Comments
 (0)