Skip to content

Commit

Permalink
Removed OneGet support
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed Oct 1, 2024
1 parent e731a0f commit 34e66e3
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 34e66e3

Please sign in to comment.