r/PowerShell • u/VGRichi • Oct 12 '26
Script Sharing We made a script that updates Windows apps installed from GitHub releases (the ones winget can’t)
A lot of apps I use are only published as GitHub releases, so neither `winget upgrade --all` nor the WinGet PowerShell module (`Get-WinGetPackage | Update-WinGetPackage`) can update them. They only know about apps in the winget catalog, and GitHub-only apps show up with no source and no available updates. I got tired of checking each repo by hand, so I put together a PowerShell script for it (built with help from an AI assistant, then tested on my own machine).
What it does:
- Keeps a list of your apps and their GitHub repos (`upgh -Add owner/repo`)
- Compares installed versions with the latest stable release
- Picks the right installer for your PC (x64/ARM64, MSI or EXE to match what you have)
- Verifies the SHA256 checksum when GitHub provides one
- Installs silently (MSI, Inno Setup, NSIS detected automatically)
- `-Discover` finds apps that have a GitHub link in their uninstall info
- Skips apps winget already updates
Known limitations: version comparison is number-based, so beta-to-beta updates of the same version aren't detected, and portable zip apps aren't supported yet.
It's one readable script with no dependencies. There's an install one-liner, but you can also just download the .ps1 from the releases page and read it first.
Repo: https://github.com/VGRichi/github-app-updater
Feedback very welcome, especially on edge cases with weird installers.
2
u/kantorcodes1 Oct 12 '26
The
if ($asset.digest)branch is the part I would look at twice. Release-asset digests are still rare in the wild, so for most GitHub-only apps the flow goes download to silent install with nothing verified. Did you consider a fallback for the no-digest case, like refusing to auto-install for repos that once shipped a digest, or is unverified install the accepted default?5
u/BlackV Oct 12 '26 edited Oct 12 '26
Anything that starts with
Is an automatic no from me
Anything using some seemingly random collection of letters to call the tool (
upgh) is basically an automatic no from meWhere you are looking at
$env:GITHUB_TOKENmaybe it is better a parameter, currently it's not discoverableThis
Feels very awkward, is
-addusingstorytold/photocraftor is actually hitting another parameter, normally you'd use hash pairs for something like that{source=xxx;name=yyy}right now nothing tiesnameandaddtogetherHow often are you really installing apps from a git repos?
Where is your help for
get-help(including examples)?