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"