You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use template-based winget submit instead of wingetcreate update
wingetcreate update fetches the published manifest from microsoft/winget-pkgs,
which still has RelativeFilePath: jira-ticket-cli.exe from before the rename.
The zip now contains jtk.exe, causing "Nested installer not found" errors.
Switch to a template-based approach: copy local manifest templates, substitute
version/checksum placeholders, and use wingetcreate submit. This bypasses
the auto-detection entirely and gives full control over manifest content.
Also updates installer template to use distinct checksum placeholders
(CHECKSUM_AMD64_PLACEHOLDER, CHECKSUM_ARM64_PLACEHOLDER) to avoid
PowerShell -replace ordering ambiguity, and updates README with correct
binary names and URL patterns.
Copy file name to clipboardExpand all lines: tools/jtk/packaging/winget/README.md
+23-25Lines changed: 23 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# Winget Package for jira-ticket-cli
2
2
3
-
This directory contains the Winget manifest templates for distributing jira-ticket-cli on Windows via `winget install OpenCLICollective.jira-ticket-cli`.
3
+
This directory contains the Winget manifest templates for distributing jtk on Windows via `winget install OpenCLICollective.jira-ticket-cli`.
4
4
5
5
## Automated Publishing
6
6
7
-
Publishing to Winget is automated via GitHub Actions. When a new release tag is pushed, the release workflow uses `wingetcreate` to submit a PR to [microsoft/winget-pkgs](https://github.com/microsoft/winget-pkgs).
7
+
Publishing to Winget is automated via GitHub Actions. When a new release tag is pushed, the release workflow copies these templates, substitutes version/checksum placeholders, and uses `wingetcreate submit` to submit a PR to [microsoft/winget-pkgs](https://github.com/microsoft/winget-pkgs).
8
8
9
9
**Required secret:**`WINGET_GITHUB_TOKEN` - A GitHub PAT with `public_repo` scope, needed to create PRs on microsoft/winget-pkgs.
10
10
@@ -24,17 +24,29 @@ packaging/winget/
24
24
25
25
Unlike Chocolatey (which hosts packages on their own feed), Winget manifests live in Microsoft's community repository [microsoft/winget-pkgs](https://github.com/microsoft/winget-pkgs). Publishing requires submitting a PR to that repo.
26
26
27
+
## Template Placeholders
28
+
29
+
The manifest templates use these placeholders that are replaced during CI:
30
+
31
+
| Placeholder | Replaced with |
32
+
|-------------|--------------|
33
+
|`0.0.0`| Release version (e.g., `0.1.18`) |
34
+
|`CHECKSUM_AMD64_PLACEHOLDER`| SHA256 of the x64 zip |
35
+
|`CHECKSUM_ARM64_PLACEHOLDER`| SHA256 of the arm64 zip |
36
+
37
+
URLs contain `0.0.0` in both the tag path and filename, so the version replacement handles them automatically.
0 commit comments