jedieaston / Add-ARPEntries

A script to generate AppsAndFeaturesEntries for winget!
MIT License
3 stars 2 forks source link

Add script to recursively run Add-ARPEntries.ps1 #7

Closed russellbanks closed 2 years ago

russellbanks commented 2 years ago

This pull request adds a script that recursively runs Add-ARPEntries.ps1 for a directory.

It has one mandatory parameter which is the directory to recurse through:

.\Recurse C:\User\winget-pkgs\manifests\p\Publisher\Package

This must be the folder that contains all the versions of a package, not any subfolder, as it will run through all of the subfolders.

It retrieves the package name by going to the first item within the directory (Publisher.Package.Version.installer.yaml), removes the installer.yaml and replaces the . with .

This is what a pull request made with Recurse.ps1 looks like:

firefox_NoYqNkErFX

This is my first PowerShell script so there will be improvements as I learn; I'll make PRs when necessary :)