Skip to content

fix(chocolatey): pass community verification (log path + PNG icon)#61

Merged
AThraen merged 3 commits into
mainfrom
feat/chocolatey-package
May 15, 2026
Merged

fix(chocolatey): pass community verification (log path + PNG icon)#61
AThraen merged 3 commits into
mainfrom
feat/chocolatey-package

Conversation

@AThraen
Copy link
Copy Markdown
Contributor

@AThraen AThraen commented May 15, 2026

Summary

Two fixes that brought v0.5.0 through community.chocolatey.org verification after the initial submission failed:

  • MSI exit 1622 (log path)silentArgs was a single-quoted PowerShell string, so $($env:TEMP)\... was passed literally to msiexec, which couldn't open it. Pre-compute the log path in a double-quoted string and embed it via escaped inner quotes so %TEMP% paths with spaces still resolve.
  • iconUrl must be PNG/SVG (not ICO) — extracted the 256×256 PNG frame from app.ico byte-for-byte (no re-encoding) and pinned iconUrl to the commit SHA so the URL is stable now and after this branch merges.

Both fixes were live-verified by re-dispatching the publish workflow against v0.5.0:

Test plan

  • chocolateyinstall.ps1 syntax-checked via AST parser
  • silentArgs dry-run shows correctly-expanded %TEMP% path with proper quoting
  • iconUrl pre-verified 200 OK image/png on raw.githubusercontent.com
  • Chocolatey workflow ran green end-to-end (twice, after each fix)
  • community.chocolatey.org verification passed on v0.5.0

🤖 Generated with Claude Code

AThraen and others added 3 commits May 15, 2026 20:56
The single-quoted PowerShell string kept the $env:TEMP / $packageName /
$env:chocolateyPackageVersion subexpressions as literal text, so MSI
received an invalid log path and aborted with exit 1622. Pre-compute the
path in a double-quoted string and embed it via escaped inner quotes so
%TEMP% values with spaces still resolve correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
256x256 PNG-encoded frame copied byte-for-byte from app.ico (no
re-encoding). Needed for Chocolatey's iconUrl guideline which requires
PNG or SVG (not ICO).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Chocolatey's package guidelines require iconUrl to resolve to a PNG or
SVG asset, not ICO. SHA-pinned to ad0ea18 so the URL is stable even
before the branch merges to main and survives branch deletion afterwards.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@AThraen AThraen force-pushed the feat/chocolatey-package branch from 3218150 to 0c556f9 Compare May 15, 2026 18:56
@AThraen AThraen merged commit 422535b into main May 15, 2026
1 check failed
@AThraen AThraen deleted the feat/chocolatey-package branch May 15, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant