Merged PR 16722: Remove cat file

Remove cat file
This commit is contained in:
Aditya Patwardhan 2021-08-12 01:09:18 +00:00
parent 9c4b5f1ae2
commit 14e7cd8991
3 changed files with 6 additions and 5 deletions

View file

@ -1692,9 +1692,6 @@
<File Id="filD2DD9066D1A148EBB7AD542DAC529862" KeyPath="yes" Source="$(env.ProductSourcePath)\Modules\PSDesiredStateConfiguration\en-US\about_PSDesiredStateConfiguration.md" />
</Component>
</Directory>
<Component Id="cmp67C4A6FC5E48487BB31DE411CF38B0B2" Guid="{321941e8-214c-470e-9002-ee21ef600145}">
<File Id="fil747B2801746E4FFCB93000BBA1089F15" KeyPath="yes" Source="$(env.ProductSourcePath)\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.cat" />
</Component>
</Directory>
<Directory Id="dirECE37E3EC3637A365744D075BD8132E9" Name="Microsoft.PowerShell.Management">
<Component Id="cmp6DAFD01CAA3A4C67185922F445EDE495" Guid="{D4374EC0-26FC-4607-AF6B-35721698E8A5}">
@ -3580,7 +3577,6 @@
<ComponentRef Id="cmp3AF5C6350FE04033B037554EA5060135" />
<ComponentRef Id="cmp0125D538DA2E4396BC1D595250B69263" />
<ComponentRef Id="cmpAC685A1C6E354E228EB6A1DD95FF03D5" />
<ComponentRef Id="cmp67C4A6FC5E48487BB31DE411CF38B0B2" />
<ComponentRef Id="cmp6DAFD01CAA3A4C67185922F445EDE495" />
<ComponentRef Id="cmp4AF592F1EDC8794BF4A3CCC2DCB717DB" />
<ComponentRef Id="cmpA65CEF99B64C1E95632B68EDFBF3739E" />

View file

@ -2456,6 +2456,12 @@ function Copy-PSGalleryModules
New-Item -Path $dest -ItemType Directory -Force -ErrorAction Stop > $null
# Exclude files/folders that are not needed. The fullclr folder is coming from the PackageManagement module
$dontCopy = '*.nupkg', '*.nupkg.metadata', '*.nupkg.sha512', '*.nuspec', 'System.Runtime.InteropServices.RuntimeInformation.dll', 'fullclr'
# Do not copy the .cat file for PSDesiredStateConfiguration module at the module on powershellgallery.com does not have that.
if ($name -eq 'PSDesiredStateConfiguration') {
$dontCopy += '*.cat'
}
Copy-Item -Exclude $dontCopy -Recurse $src/* $dest -ErrorAction Stop
}
}

View file

@ -3,7 +3,6 @@
<packageSources>
<clear />
<add key="PSGallery" value="https://www.powershellgallery.com/api/v2/" />
<add key="powershell_nuget" value="https://powershell.pkgs.visualstudio.com/PowerShell/_packaging/powershell/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources>
<clear />