https://github.com/CoreParadox/WinGetTools
Some TS scripts to manipulate winget format json easily
https://github.com/CoreParadox/WinGetTools
Last synced: 4 months ago
JSON representation
Some TS scripts to manipulate winget format json easily
- Host: GitHub
- URL: https://github.com/CoreParadox/WinGetTools
- Owner: CoreParadox
- Created: 2023-07-24T20:27:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-24T20:38:17.000Z (over 1 year ago)
- Last Synced: 2024-08-13T07:17:06.819Z (8 months ago)
- Language: TypeScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - CoreParadox/WinGetTools - Some TS scripts to manipulate winget format json easily (TypeScript)
README
# WinGetTools
Some TS scripts to manipulate winget format json easily1. Convert Winget Json into a return separated txt file
2. Convert back from plain text to winget json, parsing "-v {version}" and ":" for msstore apps (winget export doesn't export these due to a bug as of 7/24/23)For example:
```
REALiX.HWiNFO -v 7.20
ShareX.ShareX
Affinity Photo: 9P8DVF1XW02V
```Turns into
```
[
{
"Packages": [
{
"PackageIdentifier": "REALiX.HWiNFO",
"Version": "7.20"
},
{
"PackageIdentifier": "ShareX.ShareX"
}
],
"SourceDetails": {
"Argument": "https://cdn.winget.microsoft.com/cache",
"Identifier": "Microsoft.Winget.Source_8wekyb3d8bbwe",
"Name": "winget",
"Type": "Microsoft.PreIndexed.Package"
}
},
{
"Packages": [
{
"PackageIdentifier": "9P8DVF1XW02V",
"Description": "Affinity Photo"
}
],
"SourceDetails": {
"Argument": "https://storeedgefd.dsx.mp.microsoft.com/v9.0",
"Identifier": "StoreEdgeFD",
"Name": "msstore",
"Type": "Microsoft.Rest"
}
}
]
```making it easy to manually build your own list with just a few lines, instead of a ton of tiny json objects.
May improve the format later, but just needed something hacky for now.