Skip to content

Commit

Permalink
Curl or Invoke-WebRequest install launcher in your repo (#3532)
Browse files Browse the repository at this point in the history
  • Loading branch information
joan38 authored Mar 4, 2025
1 parent 2f91034 commit 49c6696
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion website/docs/_advanced_install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ Any features relying on third-party JVMs (such as ```--jvm``` and ```package --n

<div className="row"><div className="col col--9 col--offset-1 padding--lg advanced_install_methods">

Script to automatically download and cache standalone `scala-cli` launcher.
Script to automatically download and cache standalone Scala CLI launcher.

<Tabs groupId="specific-standalone-launcher"
defaultValue="macOS/Linux"
Expand All @@ -422,11 +422,30 @@ Script to automatically download and cache standalone `scala-cli` launcher.
]}>
<TabItem value="macOS/Linux">

Download the Scala CLI launcher in your project directory:
```bash
curl https://raw.githubusercontent.com/VirtusLab/scala-cli/refs/heads/main/scala-cli.sh > scala && chmod +x scala
```
We also recommend downloading the corresponding launcher for Windows users:
```bash
curl https://raw.githubusercontent.com/VirtusLab/scala-cli/refs/heads/main/scala-cli.bat > scala.bat
```

<DownloadButton desc= 'Scala CLI launcher for macOS/Linux' href='https://github.com/VirtusLab/scala-cli/blob/main/scala-cli.sh' width = '250px' ></DownloadButton>

</TabItem>
<TabItem value="windows">

Download the Scala CLI launcher in your project directory:
```bash
Invoke-WebRequest "https://raw.githubusercontent.com/VirtusLab/scala-cli/refs/heads/main/scala-cli.bat" -OutFile "scala.bat”
```
We also recommend downloading the corresponding launcher for macOS and Linux users:
```bash
Invoke-WebRequest "https://raw.githubusercontent.com/VirtusLab/scala-cli/refs/heads/main/scala-cli.sh" > scala
git update-index --chmod=+x scala
```
<DownloadButton desc= 'Scala CLI launcher for Windows' href='https://github.com/VirtusLab/scala-cli/blob/main/scala-cli.bat' width = '250px' ></DownloadButton>
</TabItem>
Expand Down

0 comments on commit 49c6696

Please sign in to comment.