Files
runner-images/images/windows/scripts/build/Install-Sbt.ps1
Vasilii Polikarpov d3e630f774 [Windows] Implement installation helpers refactoring (#8865)
* [Windows] Refactor base Installer helper functions

* Fix helper name

* Fix name gen logic and improve error handling

* Fix hash checking logic

* Fix Install-VsixExtension invocation

* Fix variable name in Install-OpenSSL.ps1

* Fix type for git downloadUrl
2023-11-22 15:14:08 +01:00

16 lines
501 B
PowerShell

################################################################################
## File: Install-Sbt.ps1
## Desc: Install sbt for Windows
################################################################################
# Install the latest version of sbt.
# See https://chocolatey.org/packages/sbt
Install-ChocoPackage sbt
$env:SBT_HOME="${env:ProgramFiles(x86)}\sbt"
# Add sbt binaries to the path
Add-MachinePathItem "$env:SBT_HOME\bin"
Invoke-PesterTests -TestFile "Tools" -TestName "Sbt"