Winget-AutoUpdate icon indicating copy to clipboard operation
Winget-AutoUpdate copied to clipboard

Update Get-IncludedApps.ps1

Open AndrewDemski-ad-gmail-com opened this issue 11 months ago • 1 comments

Expanded logic to allow pulling Whitelist from URI

Proposed Changes

It was recently brought to our attention that the Get-IncludedApps.ps1 file could provide a whitelist with package IDs from the registry and a locally stored text file, but when the same file was placed in e.g. a text file in the cloud (e.g. "Azure", we were... unable to get it…

To make our life easier, I decided to define a base class that defines the return object for all supported scenarios. (If you find this necessary, I'm open to suggestions on where to move it.)

Related Issues

Inspired by #579 I decided to perform a quick test and with correctly configured Azure Storage Container I was able to safely retrieve the same file which I uploaded from local folder.

To make it usable for this test we will need to define another switch "$URIList" which will utilize new section of 'Get-IncludedApps' function.