From f23484731855440ec67d8ee5093ce2968daeabdb Mon Sep 17 00:00:00 2001 From: David Knaack Date: Wed, 12 Apr 2023 20:38:33 +0200 Subject: [PATCH] chore(choco): remove chocolatey dependency (#5078) --- install/windows/choco/starship.nuspec | 3 --- install/windows/choco/update.ps1 | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install/windows/choco/starship.nuspec b/install/windows/choco/starship.nuspec index b9473cf8..26a71330 100644 --- a/install/windows/choco/starship.nuspec +++ b/install/windows/choco/starship.nuspec @@ -20,9 +20,6 @@ https://github.com/starship/starship/blob/master/LICENSE false - - - diff --git a/install/windows/choco/update.ps1 b/install/windows/choco/update.ps1 index 66c2862f..cea6f713 100644 --- a/install/windows/choco/update.ps1 +++ b/install/windows/choco/update.ps1 @@ -26,10 +26,13 @@ $nuspec_file.Save("./starship.install.nuspec") # Have metapackage depend on starship.install $nuspec_file.package.metadata.id = "starship" + +$deps = $nuspec_file.createelement("dependencies") $dep = $nuspec_file.createelement("dependency") $dep.SetAttribute("id", "starship.install") $dep.SetAttribute("version", "[$versionNumber]") -$nuspec_file.package.metadata.dependencies.AppendChild($dep) +$deps.AppendChild($dep) +$nuspec_file.package.metadata.AppendChild($deps) $nuspec_file.Save("./starship.nuspec") $url_x86_64_zip = "https://github.com/starship/starship/releases/download/$version/starship-x86_64-pc-windows-msvc.zip"