diff --git a/pkgs/README.md b/pkgs/README.md new file mode 100644 index 000000000000..dd8d52fea4c2 --- /dev/null +++ b/pkgs/README.md @@ -0,0 +1,5 @@ +

Package Managers Configurations

+ +The following folder contains the configuration files of all the package managers under the control of the scala organisation. + +- [chocolatey](chocolatey): Configuration files for Chocolatey \ No newline at end of file diff --git a/pkgs/chocolatey/README.md b/pkgs/chocolatey/README.md new file mode 100644 index 000000000000..4f876929f47f --- /dev/null +++ b/pkgs/chocolatey/README.md @@ -0,0 +1,10 @@ +

Configuration for Chocolatey

+ +Official support for Chocolatey started by the release of Scala 3.5.0 + +> [!IMPORTANT] +> This folder contains the templates to generate the configuration for Chocolatey. +> The `scala.nuspec` and `chocolateyinstall.ps1` files needs to be rewritten by changing the following placeholders: +> - @LAUNCHER_VERSION@ : Placeholder for the current scala version to deploy +> - @LAUNCHER_URL@ : Placeholder for the URL to the msi released on GitHub +> - @LAUNCHER_SHA256@ : Placeholder for the SHA256 of the msi file released on GitHub diff --git a/pkgs/chocolatey/chocolateyinstall.ps1 b/pkgs/chocolatey/chocolateyinstall.ps1 new file mode 100644 index 000000000000..2e39585dc7ff --- /dev/null +++ b/pkgs/chocolatey/chocolateyinstall.ps1 @@ -0,0 +1,15 @@ +$ErrorActionPreference = 'Stop'; +$packageArgs = @{ + packageName = 'scala' + fileType = 'MSI' + url64bit = '@LAUNCHER_URL@' + + softwareName = 'Scala' + checksum64 = '@LAUNCHER_SHA256@' + checksumType64= 'sha256' + + silentArgs = "/qn /norestart" + validExitCodes= @(0) +} + +Install-ChocolateyPackage @packageArgs \ No newline at end of file diff --git a/pkgs/chocolatey/scala.nuspec b/pkgs/chocolatey/scala.nuspec new file mode 100644 index 000000000000..3d4283c65de3 --- /dev/null +++ b/pkgs/chocolatey/scala.nuspec @@ -0,0 +1,25 @@ + + + + scala + @LAUNCHER_VERSION@ + Scala + scala + scala + scala + Scala + Official release of the Scala Programming Language on Chocolatey. + https://github.com/scala/scala3/tree/main/pkgs/chocolatey + https://github.com/scala/scala3 + https://scala-lang.org/ + https://github.com/scala/scala3/issues + © 2002-2024, LAMP/EPFL + https://github.com/scala/scala3/tree/main/pkgs/chocolatey/logo.ico + https://github.com/scala/scala3/blob/main/LICENSE + true + https://github.com/scala/scala3/releases + + + + + \ No newline at end of file