github.com/crowdsecurity/crowdsec@v1.6.1/make_chocolatey.ps1 (about)

     1  param (
     2      $version
     3  )
     4  if ($version.StartsWith("v"))
     5  {
     6      $version = $version.Substring(1)
     7  }
     8  
     9  #Pre-releases will be like 1.4.0-rc1, remove everything after the dash as it does not conform to the MSI versioning scheme
    10  if ($version.Contains("-")) 
    11  {
    12      $version = $version.Substring(0, $version.IndexOf("-"))
    13  }
    14  
    15  Set-Location .\windows\Chocolatey\crowdsec
    16  Copy-Item ..\..\..\crowdsec_$version.msi tools\crowdsec.msi
    17  
    18  choco pack --version $version
    19  
    20  Copy-Item crowdsec.$version.nupkg ..\..\..\