Skip to content

Commit

Permalink
Fix packages, update nuspec url mangling
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCakeIsNaOH committed Jan 16, 2025
1 parent a69b53c commit aeaff1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions choco-remixer/pkgs/packages.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18338,7 +18338,7 @@
<functionName>Convert-InstallChocolateyPackage</functionName>
<needsStopAction>no</needsStopAction>
<needsToolsDir>yes</needsToolsDir>
<architecture>x32</architecture>
<architecture>x64</architecture>
<urlType>1</urlType>
<argsType>0</argsType>
<removeEXE>yes</removeEXE>
Expand Down Expand Up @@ -23400,7 +23400,7 @@
<argsType>0</argsType>
<removeEXE>yes</removeEXE>
<checksumArgsType>5</checksumArgsType>
<checksumTypeType>sha256</checksumTypeType>
<checksumTypeType>md5</checksumTypeType>
<whyNotInternal>ToDetermine</whyNotInternal>
</pkg>
<pkg>
Expand Down
6 changes: 6 additions & 0 deletions choco-remixer/public/Format-NuspecForValidation.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ Function Format-NuspecForValidation {
if ($nuspecXML.package.metadata.iconurl -like "https://raw.githubusercontent.com*") {
$nuspecXML.package.metadata.iconurl = "https://example.com/"
}
if ($nuspecXML.package.metadata.iconurl -like "https://rawgit.com*") {
$nuspecXML.package.metadata.iconurl = "https://example.com/"
}
if ($nuspecXML.package.metadata.iconurl -like "http://cdn.rawgit.com*") {
$nuspecXML.package.metadata.iconurl = "https://example.com/"
}

Try {
[System.Xml.XmlWriterSettings] $XmlSettings = New-Object System.Xml.XmlWriterSettings
Expand Down

0 comments on commit aeaff1d

Please sign in to comment.