UniGetUI
UniGetUI copied to clipboard
How to integrate self hosted personal repository. Getting an error when trying to add the source.
Hi there,
I have created my own personal repostiory via Winget Pro, it gives me a link along with UniqueURL and I'm able to add the source to Winget in Powershell without any issue via the Microsoft REST API provided in the documentation of Winget Pro.
The link is something like this: winget source add -n example.myrepo.com -a https://example.myrepo.com/uniqueurl -t "Microsoft.Rest"
However when I try to add this repository to WingetUI, I get an error as shown in the screenshot below:
Hello,
Try this issue https://github.com/marticliment/WingetUI/issues/1721
I tried it, deleted the folder and restarted and added via just the the address/uniqueurl but its still giving me error, normal winget repository works fine, its only when I try to add my own source, i get this error:
Running the command C:\Program Files\WingetUI\wingetui\PackageEngine/Managers\winget-cli_x64\winget.exe source add sourcename url
does work?
It worked but only with the following command:
It doesnt work when i just add the name and URL, it shows the same error but in the terminal instead:
But when I used the following command, it has worked. I can now see my repo in the list and can install packages from it: C:\Program Files\WingetUI\wingetui\PackageEngine/Managers\winget-cli_x64\winget.exe source add -n example.myrepo.com -a https://example.myrepo.com/uniqueurl -t "Microsoft.Rest"
Thank you
Therefore, WingetUI is calling the wrong command.
I will fix this
Hello,
It's missing "Source type" select field in "Add source" popup, there are 2 types [Microsoft.PreIndexed.Package, Microsoft.Rest].
This should fix the issue.
This issue was fixed on a previous commit.
Changes will be effective on future releases