Skip to content

Commit

Permalink
Add docs how to install scala-cli for M1 (#1431)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwronski authored Oct 10, 2022
1 parent 96e96b2 commit 66d01e9
Showing 1 changed file with 41 additions and 2 deletions.
43 changes: 41 additions & 2 deletions website/docs/_advanced_install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ import {currentOs} from "../src/components/osUtils";
values={[
{label: 'Windows', value: 'windows'},
{label: 'MacOs', value: 'mac'},
{label: 'MacOs/M1', value: 'm1'},
{label: 'Linux', value: 'linux'},
]}>
<TabItem value="windows"></TabItem>
<TabItem value="mac"></TabItem>
<TabItem value="m1"></TabItem>
<TabItem value="linux"></TabItem>
</Tabs>
</SectionAbout>
Expand All @@ -30,6 +32,7 @@ defaultValue={currentOs()}
values={[
{label: 'Windows', value: 'windows'},
{label: 'MacOs', value: 'mac'},
{label: 'MacOs/M1', value: 'm1'},
{label: 'Linux', value: 'linux'},
]}
>
Expand Down Expand Up @@ -271,12 +274,12 @@ scala-cli about
</TabItem>
<TabItem value="installer">

Download PKG installer with Scala CLI for MacOS
Download the PKG installer with Scala CLI for MacOS
<DownloadButton desc= 'Scala CLI for MacOS' href='https://github.com/Virtuslab/scala-cli/releases/latest/download/scala-cli-x86_64-apple-darwin.pkg'></DownloadButton>
<br/>
<br/>

Once downloaded, right-click on `scala-cli-x86_64-apple-darwin.pkg` from Finder, and choose "Open".
Once downloaded, right-click on `scala-cli-x86_64-apple-darwin.pkg` from Finder and then choose "Open".
</TabItem>
<TabItem value="brew">

Expand Down Expand Up @@ -310,6 +313,42 @@ sdk install scalacli
</TabItem>
</Tabs>

</TabItem>
<TabItem value="m1">

<Tabs
groupId="m1"
defaultValue="installer"
values={[
{label: 'Manual', value: 'manual'},
{label: 'Installer', value: 'installer'},
]}
>
<TabItem value="manual">

Download the launcher from GitHub release assets with
```bash
curl -fL https://github.com/Virtuslab/scala-cli/releases/latest/download/scala-cli-aarch64-apple-darwin.gz | gzip -d > scala-cli
chmod +x scala-cli
mv scala-cli /usr/local/bin/scala-cli
```

Check that it runs fine by running its `about` command:
```bash
scala-cli about
```
</TabItem>
<TabItem value="installer">

Download the PKG installer with Scala CLI for MacOS/M1
<DownloadButton desc= 'Scala CLI for MacOS/M1' href='https://github.com/Virtuslab/scala-cli/releases/latest/download/scala-cli-aarch64-apple-darwin.pkg'></DownloadButton>
<br/>
<br/>

Once downloaded, right-click on `scala-cli-aarch64-apple-darwin.pkg` from Finder and then choose "Open".
</TabItem>
</Tabs>

</TabItem>
</Tabs>

Expand Down

0 comments on commit 66d01e9

Please sign in to comment.