@echo off cd /d "%~dp0" echo Please enter the ibex package version (X.Y.Z[.D]) set /P PACKAGE_VERSION= echo %PACKAGE_VERSION% del /f /q ibex.%PACKAGE_VERSION%.nupkg wget https://github.com/lebarsfa/ibex-lib/releases/download/ibex-%PACKAGE_VERSION%/ibex.%PACKAGE_VERSION%.nupkg --no-check-certificate -nv 7z x ibex.%PACKAGE_VERSION%.nupkg -o"ibex.%PACKAGE_VERSION%" -y del /f /q ibex.%PACKAGE_VERSION%.nupkg del /f /q ibex_x86_mingw11.zip wget https://github.com/lebarsfa/ibex-lib/releases/download/ibex-%PACKAGE_VERSION%/ibex_x86_mingw11.zip --no-check-certificate -nv powershell -command "$checksum=checksum ibex_x86_mingw11.zip -t=sha256 ; $checksum ; (Get-Content ibex.$env:PACKAGE_VERSION\tools\chocolateyInstall.ps1) -replace 'EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE',$checksum | Set-Content ibex.$env:PACKAGE_VERSION\tools\chocolateyInstall.ps1" del /f /q ibex_x86_mingw11.zip del /f /q ibex_x64_mingw11.zip wget https://github.com/lebarsfa/ibex-lib/releases/download/ibex-%PACKAGE_VERSION%/ibex_x64_mingw11.zip --no-check-certificate -nv powershell -command "$checksum=checksum ibex_x64_mingw11.zip -t=sha256 ; $checksum ; (Get-Content ibex.$env:PACKAGE_VERSION\tools\chocolateyInstall.ps1) -replace 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF',$checksum | Set-Content ibex.$env:PACKAGE_VERSION\tools\chocolateyInstall.ps1" del /f /q ibex_x64_mingw11.zip cd ibex.%PACKAGE_VERSION% rd /s /q _rels package del /f /q "[Content_Types].xml" choco pack move /Y ibex.%PACKAGE_VERSION%.nupkg .. cd .. rd /s /q ibex.%PACKAGE_VERSION% pause