Skip to content

Commit b077fbb

Browse files
authored
Merge pull request #1469 from scalacenter/fix-setup
Fix setup instructions
2 parents 5266543 + 6552c01 commit b077fbb

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

_data/setup-scala.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
linux: curl -fL https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && ./cs setup
2-
macOS-default: curl -fL https://github.com/coursier/launchers/raw/master/cs-x86_64-apple-darwin.gz | gzip -d > cs && chmod +x cs && (xattr -d com.apple.quarantine cs || true) && ./cs setup
1+
linux-x86-64: curl -fL https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && ./cs setup
2+
linux-arm64: curl -fL https://github.com/VirtusLab/coursier-m1/releases/latest/download/cs-aarch64-pc-linux.gz | gzip -d > cs && chmod +x cs && ./cs setup
3+
macOS-x86-64: curl -fL https://github.com/coursier/launchers/raw/master/cs-x86_64-apple-darwin.gz | gzip -d > cs && chmod +x cs && (xattr -d com.apple.quarantine cs || true) && ./cs setup
4+
macOS-arm64: curl -fL https://github.com/VirtusLab/coursier-m1/releases/latest/download/cs-aarch64-apple-darwin.gz | gzip -d > cs && chmod +x cs && (xattr -d com.apple.quarantine cs || true) && ./cs setup
35
macOS-brew: brew install coursier/formulas/coursier && cs setup
46
windows-link: https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-win32.zip

_install_tabs/1-macos.html

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66
<div class="wrap">
77
<p>Run the following command in your terminal, following the on-screen instructions:</p>
88
{% include code-snippet.html language='bash' codeSnippet=site.data.setup-scala.macOS-brew %}
9-
{% assign homebrewAlt = "Alternatively, if you don't use Homebrew:" %}
9+
{% assign homebrewAlt = "Alternatively for Apple Silicon, or if you don't use Homebrew:" %}
1010
{% capture homebrewDetail %}
1111
<div class="wrap-narrow">
12-
{% include code-snippet.html language='bash' codeSnippet=site.data.setup-scala.macOS-default %}
12+
<p>On the Apple Silicon (M1, M2, …) architecture:</p>
13+
{% include code-snippet.html language='bash' codeSnippet=site.data.setup-scala.macOS-arm64 %}
14+
<p>Otherwise, on the x86-64 architecture:</p>
15+
{% include code-snippet.html language='bash' codeSnippet=site.data.setup-scala.macOS-x86-64 %}
1316
</div>
1417
{% endcapture %}
1518
{% include alt-details.html

_install_tabs/2-linux.html

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
---
55
<div class="text-step wrap-inline">
66
<div class="wrap">
7-
<p>Run the following command in your terminal, following the on-screen instructions:</p>
8-
{% include code-snippet.html language='bash' codeSnippet=site.data.setup-scala.linux %}
7+
<p>Run the following command in your terminal, following the on-screen instructions.</p>
8+
<p>On the x86-64 architecture:</p>
9+
{% include code-snippet.html language='bash' codeSnippet=site.data.setup-scala.linux-x86-64 %}
10+
<p>Otherwise, on the ARM64 architecture:</p>
11+
{% include code-snippet.html language='bash' codeSnippet=site.data.setup-scala.linux-arm64 %}
912
</div>
1013
</div>

0 commit comments

Comments
 (0)