Skip to content

publish: cz-peers 1.1.1 - #472

Closed
InstantComet wants to merge 1 commit into
CardputerZero:mainfrom
InstantComet:publish/cz-peers-1.1.1-1795015512
Closed

InstantComet wants to merge 1 commit into
CardputerZero:mainfrom
InstantComet:publish/cz-peers-1.1.1-1795015512

Conversation

@InstantComet

Copy link
Copy Markdown
Contributor

Package: cz-peers

Field Value
Version 1.1.1
Architecture all
Maintainer InstantComet 10364622+InstantComet@users.noreply.github.com
Size 0.0 MB
SHA-256 08717fccaa78f4a93902031a5ae7684c56aed60677c428d961822566d19de2eb
Manifest pool/main/cz-peers/cz-peers_1.1.1_all.deb.release.json
Binary cz-peers_1.1.1_all.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

  • ❌ cz-peers_1.1.1_all.deb installs files in disallowed locations:
    usr/bin/ts-clip — the filename under /usr/bin must relate to the package name cz-peers (avoids shadowing system commands) / /usr/bin 下的文件名必须与包名 cz-peers 相关,避免覆盖系统命令
📁 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 = cz-peers
这次被拒绝的路径:
usr/bin/ts-clip

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

Package details / 安装包信息

cz-peers_1.1.1_all.deb

Field Value
Package cz-peers
Version 1.1.1
Previous version / 上一版 — (new package / 新应用)
Architecture all
Maintainer InstantComet 10364622+InstantComet@users.noreply.github.com
Download size / 安装包大小 0.0 MB
Installed size / 安装后大小 0.1 MB
Files / 文件数 6
ELF binaries / ELF 二进制 0
Depends python3, openssh-client
SHA-256 08717fccaa78f4a93902031a5ae7684c56aed60677c428d961822566d19de2eb

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

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

@InstantComet

Copy link
Copy Markdown
Contributor Author

Superseded by #473 (1.1.2: the clipboard helper is now /usr/bin/cz-peers-clip to satisfy the install path rules).

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