Skip to content

Commit e3a1230

Browse files
committed
Curl or Invoke-WebRequest install launcher in your repo
1 parent 4ecf3dd commit e3a1230

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

website/docs/_advanced_install.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,15 +422,28 @@ Script to automatically download and cache standalone `scala-cli` launcher.
422422
]}>
423423
<TabItem value="macOS/Linux">
424424

425+
Download the Scala CLI launcher in your project directory:
426+
```bash
427+
curl https://raw.githubusercontent.com/VirtusLab/scala-cli/refs/heads/main/scala-cli.sh > scala && chmod +x scala
428+
```
429+
425430
<DownloadButton desc= 'Scala CLI launcher for macOS/Linux' href='https://github.com/VirtusLab/scala-cli/blob/main/scala-cli.sh' width = '250px' ></DownloadButton>
426431

427432
</TabItem>
428433
<TabItem value="windows">
429434

435+
Download the Scala CLI launcher in your project directory:
436+
```bash
437+
Invoke-WebRequest "https://raw.githubusercontent.com/VirtusLab/scala-cli/refs/heads/main/scala-cli.bat" -OutFile "scala.bat”
438+
```
439+
430440
<DownloadButton desc= 'Scala CLI launcher for Windows' href='https://github.com/VirtusLab/scala-cli/blob/main/scala-cli.bat' width = '250px' ></DownloadButton>
431441
432442
</TabItem>
433443
</Tabs>
444+
445+
We recommend committing the scala executable together with your code so that everyone working on the project can
446+
compile and run the code without needing to install anything (not even Java).
434447
</div></div>
435448
436449
<SectionAbout title="Bootstrapped standalone fat JAR" colBigTitle="7"></SectionAbout>

0 commit comments

Comments
 (0)