Skip to content

publish: ultimate-flasher-cardputerzero 0.3.0 - #461

Open
D3h420 wants to merge 1 commit into
CardputerZero:mainfrom
D3h420:publish/ultimate-flasher-cardputerzero-0.3.0-1794999291
Open

D3h420 wants to merge 1 commit into
CardputerZero:mainfrom
D3h420:publish/ultimate-flasher-cardputerzero-0.3.0-1794999291

Conversation

@D3h420

@D3h420 D3h420 commented Nov 18, 2026

Copy link
Copy Markdown

Package: ultimate-flasher-cardputerzero

Field Value
Version 0.3.0
Architecture arm64
Maintainer LAB5
Size 8.6 MB
SHA-256 1ca4f974cc321fdaf8c6301ecde36a89f73a4d30c75105f2656b245d93970852
Manifest pool/main/ultimate-flasher-cardputerzero/ultimate-flasher-cardputerzero_0.3.0_arm64.deb.release.json
Binary ultimate-flasher-cardputerzero_0.3.0_arm64.deb

Submitted via czdev publish. The .deb is hosted on the contributor's buffer release; CI verifies the sha256 and, on merge, promotes it into the official apt-pool release.

@github-actions

Copy link
Copy Markdown
Contributor

❌ Package Validation Failed

  • ❌ ultimate-flasher-cardputerzero_0.3.0_arm64.deb installs files in disallowed locations:
    etc/udev/rules.d/ultimate-flasher-cardputerzero.rules — etc/ may only hold config named after the package ultimate-flasher-cardputerzero; udev does not match / etc/ 下只能放与包名 ultimate-flasher-cardputerzero 相关的配置文件或目录,udev 不符合
📁 Install path rules + a ready-to-paste AI prompt / 安装路径规则 + 可直接交给 AI 的提示词(点开)

We allow Debian's standard locations and only require that anything landing
in a shared directory starts with your package name
, so an app cannot quietly
shadow system commands or other packages' files. -, _ and . are ignored
in the comparison, so package fontpreview may use a font_preview directory.
Copy the block below into an AI assistant (Cursor / Claude / ChatGPT); it
carries the full policy plus your rejected paths and can fix the packaging
scripts directly.

我们放行 Debian 的标准位置,只要求落在共享目录里的文件名/目录名以你的包名开头,
这样一个应用不会悄悄覆盖系统命令或别人的文件。比对时忽略 -、_、. 的差异,
所以包名 fontpreview 用 font_preview 目录是可以的。
把下面整段复制给 AI(Cursor / Claude / ChatGPT),它带着完整规则和你这次被拒的路径,
可以直接帮你改打包脚本:

我在给 CardputerZero AppStore 打一个 Debian 包(.deb),提交后被商店的安装路径检查拒绝了。
请帮我修改打包脚本(CMakeLists.txt / debian/rules / install 脚本 / Makefile,看项目里用的是哪种),
把文件装到合规位置,并同步更新 .desktop 里的 Exec 和 Icon、以及代码里读取资源文件的路径。

商店的规则(包名记作 PKG。“与包名相关”指名字以 PKG 开头,比对时忽略 - _ . 的差异,所以 PKG 是 fontpreview 时目录叫 font_preview、fontpreview-data 都算合规,叫 preview 不算):

允许安装到:
- usr/bin/<名字>:可执行文件,名字必须与包名相关(这是 Debian Policy 10.1 的标准位置)
- usr/share/<与包名相关的目录>/**:图片、字体、音频等只读资源
- usr/lib/<与包名相关的目录>/**:私有库、插件
- opt/<与包名相关的目录>/**:整体打包自带的目录
- etc/<与包名相关的目录>/** 或 etc/<与包名相关>.conf:配置文件(Debian conffile 惯例)
- var/lib/<与包名相关的目录>/**:运行时数据
- etc/default/<PKG>、etc/logrotate.d/<PKG>、usr/share/lintian/overrides/<PKG>、usr/share/bash-completion/completions/<PKG>、
  usr/lib/tmpfiles.d/<PKG>.conf、usr/share/man/manN/<PKG>.N.gz:Debian 标准的共享目录,目录名照旧,文件名以包名开头
- usr/lib/udev/rules.d/NN-<PKG>.rules:udev 规则,不能使用 RUN、PROGRAM 和 program 类型的 IMPORT(这些会以 root 执行命令)
- usr/share/APPLaunch/**:CardputerZero 启动器资源,且必须有 usr/share/APPLaunch/applications/<名字>.desktop
- usr/share/doc/**:文档
- lib/systemd/system/<与包名相关>.service 或 usr/lib/systemd/system/<同样>:服务名必须与包名相关,
  且 [Service] 段必须写 User=<非 root 用户>(商店拒绝以 root 运行的服务)

禁止:
- usr/local/** —— Debian Policy 9.1.2 明令禁止软件包写入
- 以 bin/ sbin/ lib/ lib32/ lib64/ libx32/ 开头的路径 —— Debian Policy 10.1(usr-merge 别名路径),请改用 usr/ 下的对应位置
- 直接散落在 usr/share/ 或 usr/lib/ 下的文件 —— 必须收进以包名命名的子目录
- 在 usr/bin/ 下建子目录
- 名字与包名无关的共享目录名、可执行文件名或服务名(这是为了防止覆盖系统文件)
- setuid/setgid 文件、设备文件

我的包名 PKG = ultimate-flasher-cardputerzero
这次被拒绝的路径:
etc/udev/rules.d/ultimate-flasher-cardputerzero.rules

请告诉我具体要改哪些文件、改成什么,以及资源路径在源码里怎么同步修改。
(Assistant: reply in the same language the user speaks to you.)

Suggestions (non-blocking) / 建议(不阻断):

  • ⚠️ ultimate-flasher-cardputerzero: consider adding locales (localized title/summary) / 建议提供 locales(多语言 title/summary),商店会按用户语言展示

Package details / 安装包信息

ultimate-flasher-cardputerzero_0.3.0_arm64.deb

Field Value
Package ultimate-flasher-cardputerzero
Version 0.3.0
Previous version / 上一版 — (new package / 新应用)
Architecture arm64
Maintainer LAB5
Download size / 安装包大小 8.6 MB
Installed size / 安装后大小 ?
Files / 文件数 2230
ELF binaries / ELF 二进制 4 (arm64)
Depends python3 (>= 3.10), python3-numpy, python3-pil, python3-qrcode
SHA-256 1ca4f974cc321fdaf8c6301ecde36a89f73a4d30c75105f2656b245d93970852

If you believe this is an error, contact a maintainer.

如果你认为这是误判,请联系维护者。

This branch has not been deployed

No deployments
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