Maybe Chocolatey accepts this now

This commit is contained in:
Daniel Ziltener 2020-04-04 00:37:05 +02:00
parent 414cffecc5
commit 6c5803b17b
2 changed files with 3 additions and 3 deletions

View file

@ -27,4 +27,4 @@ jobs:
- run: cd chickenbuild; $env:Path+=";C:\tools\msys64\mingw64\bin";$env:CFLAGS="-O2 -Wno-unused-variable -Wno-unused-but-set-variable"; mingw32-make.exe PLATFORM=mingw-msys ARCH=x86-64 PREFIX=C:/tools/chicken - run: cd chickenbuild; $env:Path+=";C:\tools\msys64\mingw64\bin";$env:CFLAGS="-O2 -Wno-unused-variable -Wno-unused-but-set-variable"; mingw32-make.exe PLATFORM=mingw-msys ARCH=x86-64 PREFIX=C:/tools/chicken
- run: .\build.ps1 - run: .\build.ps1
- run: choco apikey --key $Env:CHOCO_API_KEY --source https://push.chocolatey.org - run: choco apikey --key $Env:CHOCO_API_KEY --source https://push.chocolatey.org
- run: choco push chicken.$Env:version-$Env:build.nupkg --source https://push.chocolatey.org - run: choco push chicken.$Env:version.$Env:build.nupkg --source https://push.chocolatey.org

View file

@ -50,8 +50,8 @@ foreach ($file in $files) {
cd .. cd ..
# Cleanup and packaging # Cleanup and packaging
Remove-Item -Recurse -Force chickenbuild Remove-Item -Recurse -Force chickenbuild
(Get-Content chicken.nuspec).replace("CHICKEN_VERSION", "$Env:version-$Env:build") | Set-Content chicken\chicken.nuspec (Get-Content chicken.nuspec).replace("CHICKEN_VERSION", "$Env:version.$Env:build") | Set-Content chicken\chicken.nuspec
cd chicken cd chicken
choco pack choco pack
cd .. cd ..
mv .\chicken\chicken.$Env:version-$Env:build.nupkg .\ mv .\chicken\chicken.$Env:version.$Env:build.nupkg .\