microsoft / winget-create

The Windows Package Manager Manifest Creator command-line tool (aka wingetcreate)
MIT License
472 stars 83 forks source link

WingetCreate commands should work with anonymized paths #483

Closed mdanish-kh closed 7 months ago

mdanish-kh commented 7 months ago

Description of the new feature / enhancement

wingetcreate should accept paths substituted with environment variables. This applies to wingetcreate submit and also other commands that support --out option.

Scenario

As a user when I run a command like

wingetcreate update jqlang.jq --version 60.0.0 -u https://github.com/stedolan/jq/releases/download/jq-1.5/jq-win64.exe

At the end of the update, the output shows

Manifest saved to %USERPROFILE%\manifests\j\jqlang\jq\60.0.0

Manifest validation succeeded: True

When I want to submit the generated manifest through wingetcreate submit and copy-paste the path from the command output, I get:

 ~ wingetcreate submit %USERPROFILE%\manifests\j\jqlang\jq\60.0.0
ERROR: Path does not exist

Proposed technical implementation details

No response