feat(portal): 网页补充商店信息 + 320×170 截图(无 LFS,存 GitHub Release + git PNG)#10
Merged
eggfly merged 1 commit intoJul 21, 2026
Conversation
…enshots Adds a store-info form to the upload flow so submitters without a source repo can provide title/summary/description/categories, an optional square icon, and up to 6 screenshots — equivalent to czdev's app-builder.json `store` section, filled in right after picking the .deb. - site: in-browser screenshot tool cover-fits any image to exactly 320x170 (the CardputerZero LCD) via canvas; icon is normalized to a square PNG. - worker: /api/submit accepts the metadata + PNGs, validates dimensions (screenshots 320x170, icon square <=512), uploads images to the same buffer Release as the .deb, and forwards a `store` client_payload. - workflow: process-web-submission builds meta.json from the web `store` (highest priority over source_repo/deb fallback) and commits the images as ordinary small PNGs into pool/main/<pkg>/ — no Git LFS. Co-authored-by: Cursor <cursoragent@cursor.com>
eggfly
merged commit Jul 21, 2026
270d8ac
into
fix/portal-frontend-first-come-ownership
2 checks passed
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.
背景
网页上传只有一个「源码仓库」输入框:源码仓库里带
app-builder.json的store段才能自动带入截图/商店信息,没有源码仓库的人无法在网页补充商店信息。本 PR 补齐「上传 deb 后直接在网页填商店信息」的能力,等价于 czdev。存储(回答「存哪里 / 不用 LFS」)
.deb:一直在 GitHub Release 资产 + 阿里云 OSS 镜像,git 里只有*.release.json(现状,不变)。pool/main/<pkg>/(和 source_repo 路径一致)。全程不走 Git LFS。packages/.gitattributes里那行自相矛盾、实际失效的*.deb filter=lfs(另一个仓库改)。改动
/api/submit接收元数据 + PNG,校验尺寸(截图 320×170、图标正方形 ≤512、单张 <512KB),上传到 buffer Release,store结构随repository_dispatch下发。process-web-submission新增最高优先级分支——有网页store时用它写meta.json并下载图片提交(校验 sha256 + 320×170),否则回退到 source_repo / deb。说明
main即可。Made with Cursor