Write a package's first version with wingetsource new-package #23
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jeff/winget-pkgs#23
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A package's first version is written by hand today:
new-versionrefuses a package with no versions, and CONTRIBUTING says the first one is written by hand. Harrier and Zfj were each written that way, and their files differ only in what is particular to the program.Add
wingetsource new-package, which writes a package's first version from flags:--identifier JCOllie.<Program>,--version,--repository jeff/<program>,--type portable|msi,--installer ARCH=URL(repeatable).--name,--short-description,--descriptionor--description-file,--license <SPDX>,--tag(repeatable).--monikerand--command, defaulting to the program's name in lower case;--release-notes-url,--release-dateand--jsonas innew-version.…/src/branch/main/LICENSES/<SPDX>.txt), the SPDX and schema lines,en-USandManifestVersionfollow from those.ProductCode,UpgradeCodeandALLUSERSare read from the downloaded installer withmsiinfo;Scope: machineis written only forALLUSERS=1.It refuses when the package already has a version, when the identifier is not
JCOllie.<Program>, when an installer is not on git.jcollie.dev, or when what it would write failscheck. Only a person runs it, so ADR 0004 does not hold its options fixed.Done when the devshell has msitools, tests rebuild Zfj 0.4.0 and Harrier 0.1.0 from flags, and CONTRIBUTING and the README describe it.