Skip to content

Instantly share code, notes, and snippets.

View staticfrost's full-sized avatar
💭
Slowly learning

Scott staticfrost

💭
Slowly learning
  • Brisbane, Australia
View GitHub Profile
@staticfrost
staticfrost / gist:bd3eac7ef1aba60d1546c5961ab5b935
Created April 4, 2023 03:10
How to get a winget package updated
1. download the wingetcreate application
2. check the exsiting mainifest for the projects PackageId
2.1. https://github.com/microsoft/winget-pkgs/blob/master/manifests/g/GoLang/Go/1/20/1.20.0/GoLang.Go.1.20.yaml#L4
3. Get the list of how many urls have been used for the previous additions:
3.1. https://github.com/microsoft/winget-pkgs/blob/master/manifests/g/GoLang/Go/1/20/1.20.0/GoLang.Go.1.20.installer.yaml#L18
4. Command to run when wanting to make a new updated manifest, it needs to have the same number of supplied urls (3):
`wingetcreate.exe update -s --version 1.20.2 GoLang.Go.1.20 -u https://go.dev/dl/go1.20.2.windows-amd64.msi https://go.dev/dl/go1.20.2.windows-386.msi https://go.dev/dl/go1.20.2.windows-arm64.msi`
2017/01/20 09:24:09 [INFO] Packer version: 0.10.1
2017/01/20 09:24:09 Packer Target OS/Arch: windows amd64
2017/01/20 09:24:09 Built with Go Version: go1.6.2
2017/01/20 09:24:09 Using internal plugin for docker
2017/01/20 09:24:09 Using internal plugin for openstack
2017/01/20 09:24:09 Using internal plugin for parallels-pvm
2017/01/20 09:24:09 Using internal plugin for virtualbox-iso
2017/01/20 09:24:09 Using internal plugin for amazon-ebs
2017/01/20 09:24:09 Using internal plugin for file
2017/01/20 09:24:09 Using internal plugin for vmware-vmx