Skip to content

Commit

Permalink
Curl or Invoke-WebRequest install launcher in your repo
Browse files Browse the repository at this point in the history
  • Loading branch information
joan38 committed Mar 3, 2025
1 parent 4ecf3dd commit e3a1230
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions website/docs/_advanced_install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -422,15 +422,28 @@ 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
```

<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”
```
<DownloadButton desc= 'Scala CLI launcher for Windows' href='https://github.com/VirtusLab/scala-cli/blob/main/scala-cli.bat' width = '250px' ></DownloadButton>
</TabItem>
</Tabs>
We recommend committing the scala executable together with your code so that everyone working on the project can
compile and run the code without needing to install anything (not even Java).
</div></div>
<SectionAbout title="Bootstrapped standalone fat JAR" colBigTitle="7"></SectionAbout>
Expand Down

0 comments on commit e3a1230

Please sign in to comment.