diff --git a/chocolatey-visualstudio.extension/extensions/Get-VSComponentManifest.ps1 b/chocolatey-visualstudio.extension/extensions/Get-VSComponentManifest.ps1 index 7c973876..9865c431 100644 --- a/chocolatey-visualstudio.extension/extensions/Get-VSComponentManifest.ps1 +++ b/chocolatey-visualstudio.extension/extensions/Get-VSComponentManifest.ps1 @@ -25,8 +25,7 @@ function Get-VSComponentManifest return $null } - # TODO: pass -Checksum and -ChecksumType - $catalogManifest = Get-VSManifest -Description 'catalog manifest' -Url $url -LayoutFileName 'Catalog.json' -LayoutPath $layoutPath + $catalogManifest = Get-VSManifest -Description 'catalog manifest' -Url $url -Checksum $checksum -ChecksumType $checksumType -LayoutFileName 'Catalog.json' -LayoutPath $layoutPath return $catalogManifest } diff --git a/chocolatey-visualstudio.extension/extensions/Get-VSManifest.ps1 b/chocolatey-visualstudio.extension/extensions/Get-VSManifest.ps1 index 8724157d..1a789af1 100644 --- a/chocolatey-visualstudio.extension/extensions/Get-VSManifest.ps1 +++ b/chocolatey-visualstudio.extension/extensions/Get-VSManifest.ps1 @@ -5,6 +5,8 @@ function Get-VSManifest ( [Parameter(Mandatory = $true)] [string] $Description, [Parameter(Mandatory = $true)] [string] $Url, + [string] $Checksum, + [string] $ChecksumType, [string] $LayoutFileName, [string] $LayoutPath ) @@ -52,6 +54,8 @@ function Get-VSManifest packageName = $Description fileFullPath = $localFilePath url = $Url + checksum = $Checksum + checksumType = $ChecksumType } Set-StrictMode -Off