Write a new version of a package from its newest one #9
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jeff/winget-pkgs!9
Loading…
Reference in a new issue
No description provided.
Delete branch "new-version"
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?
Closes #7.
Adds
wingetsource new-version, whichjeff/winget-submitwill run (ADR 0004):version.py's winget ordering, and replacesPackageVersionin every file,ReleaseDate, and each installer'sInstallerUrlandInstallerSha256, matched byArchitecture. The hash comes from downloading the installer.ReleaseNotesUrlis set from--release-notes-url, or dropped when it isn't given.Beyond the ticket
check, in its own commit. Cloudflare in front of git.jcollie.dev rejects urllib's defaultPython-urllib/3.xuser agent with a 403, socheckcould never have downloaded an installer hosted there. That hadn't shown yet, because no change has madecheckdownload one. The shared download function now sendswingetsource (+https://git.jcollie.dev/jeff/winget-pkgs).ReleaseNotesis always dropped. It's the old version's text, the same reasonReleaseNotesUrlis replaced.ReleaseDateis replaced where it appears.Testing
check_directoryon the result.check --changed-sincedownloading the installer from git.jcollie.dev and finding 0 problems. The diff against 0.2.0 was exactlyPackageVersion,ReleaseDate, the URL and hash, andReleaseNotesUrl. The installer used was Clipwatch's source archive, because Clipwatch has no Windows asset on git.jcollie.dev yet.Not handled
Version-dependent fields inside an installer —
AppsAndFeaturesEntries'DisplayVersion, or an MSI'sProductCode— are copied unchanged. No package here has them; a package that does would need its versions written by hand, or an option added later.🤖 Generated with Claude Code
https://claude.ai/code/session_01D31MsLkM9DkCauP1EB2zgw