From 34e66e3525124a3d07fdda46daaa283203351179 Mon Sep 17 00:00:00 2001 From: Bastian Eicher Date: Tue, 1 Oct 2024 23:33:57 +0200 Subject: [PATCH] Removed OneGet support --- src/build.ps1 | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/build.ps1 b/src/build.ps1 index 08a1641ff..f5a600dce 100644 --- a/src/build.ps1 +++ b/src/build.ps1 @@ -29,9 +29,6 @@ function Add-Manifest($Manifest, $Binary) { # Inject version number SearchAndReplace $Version Bootstrap\chocolateyInstall.ps1 -PatternLeft '--version=' -PatternRight ' self' -$AssemblyVersion = $Version.Split("-")[0] -SearchAndReplace $AssemblyVersion OneGet\provider.manifest -PatternLeft 'version="' -PatternRight '" versionScheme="multipartnumeric"' -SearchAndReplace $AssemblyVersion OneGet.Bootstrap\0install.psd1 -PatternLeft "ModuleVersion = '" -PatternRight "'" # Compile source code Run-MSBuild /v:Quiet /t:Restore /t:Build /p:Configuration=Release /p:Version=$Version @@ -46,18 +43,6 @@ dotnet wix build zero-install.wsx -o ..\..\artifacts\Bootstrap\zero-install.msi if ($LASTEXITCODE -ne 0) {throw "Exit Code: $LASTEXITCODE"} popd -# Generate bootstrap package for PowerShell Gallery (OneGet) -$env:PATH = "$env:PATH;${env:ProgramFiles(x86)}\Windows Kits\10\bin\x64;${env:ProgramFiles(x86)}\Windows Kits\8.1\bin\x64" -if (Get-Command mt -ErrorAction SilentlyContinue) { - Add-Manifest OneGet\provider.manifest ..\artifacts\Release\net472\ZeroInstall.OneGet.dll - Add-Manifest OneGet\provider.manifest OneGet.Bootstrap\bin\Release\net472\0install.dll - - ..\0install.ps1 run --batch https://apps.0install.net/dotnet/nuget.xml pack OneGet.Bootstrap\PowerShell.nuspec -NoPackageAnalysis -Properties Version=$Version -OutputDirectory ..\artifacts - move -Force ..\artifacts\0install.$Version.nupkg ..\artifacts\0install.powershell.$Version.nupkg -} else { - Write-Warning "You need mt.exe to build the 0install OneGet provider" -} - # Generate bootstrap package for Chocolatey if (Get-Command choco -ErrorAction SilentlyContinue) { choco pack Bootstrap\Chocolatey.nuspec --version $Version --outdir ..\artifacts