mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
Windows Support (#1159)
This commit is contained in:
parent
a49b023a28
commit
0449ec1868
100 changed files with 3401 additions and 437 deletions
18
make_chocolatey.ps1
Normal file
18
make_chocolatey.ps1
Normal file
|
@ -0,0 +1,18 @@
|
|||
param (
|
||||
$version
|
||||
)
|
||||
if ($version.StartsWith("v"))
|
||||
{
|
||||
$version = $version.Substring(1)
|
||||
}
|
||||
|
||||
#Pre-releases will be like 1.4.0-rc1, remove everything after the dash as it does not conform to the MSI versioning scheme
|
||||
if ($version.Contains("-"))
|
||||
{
|
||||
$version = $version.Substring(0, $version.IndexOf("-"))
|
||||
}
|
||||
|
||||
Set-Location .\windows\Chocolatey\crowdsec
|
||||
Copy-Item ..\..\..\crowdsec_$version.msi tools\crowdsec.msi
|
||||
|
||||
choco pack
|
Loading…
Add table
Add a link
Reference in a new issue