tools: Export package metadata and RGB565 icons. - #3663
Open
aviralgarg05 wants to merge 1 commit into
Open
Conversation
aviralgarg05
force-pushed
the
gsoc/nxpkg-icons-pr13
branch
from
August 14, 2026 15:12
de1a59a to
353906a
Compare
aviralgarg05
marked this pull request as ready for review
August 14, 2026 15:14
aviralgarg05
force-pushed
the
gsoc/nxpkg-icons-pr13
branch
from
August 15, 2026 10:02
7fa8deb to
e143080
Compare
| ) | ||
|
|
||
| # Icons are square and small enough to stay a quick download on a target | ||
| # that fetches its catalog over the network. |
Contributor
There was a problem hiding this comment.
squash into one patch
Write optional package metadata and convert icons to bounded RGB565 assets. Reject paths that escape the package directory. Assisted-by: OpenAI Codex:gpt-5.6-sol Signed-off-by: aviralgarg05 <gargaviral99@gmail.com>
aviralgarg05
force-pushed
the
gsoc/nxpkg-icons-pr13
branch
from
August 15, 2026 10:33
e143080 to
367b930
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note: Please adhere to Contributing Guidelines.
Summary
tools/export_pkg_repo.pyproduced a catalog with a name, a version and anartifact, which is enough to install a package but not enough for a client
to show anything about it before installing.
This lets a package carry a description, a category and an icon. The icon
is converted from an ordinary image into a small raw RGB565 buffer with a
12-byte header, which a target can render directly; decoding PNG or JPEG on
a small device is not assumed.
Impact
them exports exactly as before.
know them.
Testing
Build host: macOS 26.5, arm64, Python 3.14.
flake8with.github/linters/setup.cfg,black --check,isort --checkindex.jsonparses, the SHA-256 of each artifact matches the file on disk, and the
icon payload is the expected size for its declared dimensions
PR verification Self-Check