Skip to content

publish: square-sdr 0.3.0 - #620

Closed
MrJoshMurray wants to merge 1 commit into
CardputerZero:mainfrom
MrJoshMurray:publish/square-sdr-0.3.0-1795272962
Closed

MrJoshMurray wants to merge 1 commit into
CardputerZero:mainfrom
MrJoshMurray:publish/square-sdr-0.3.0-1795272962

Conversation

@MrJoshMurray

Copy link
Copy Markdown
Contributor

Package: square-sdr

Field Value
Version 0.3.0
Architecture arm64
Maintainer Josh Murray josh@tigerstyle.co.uk
Size 2.1 MB
SHA-256 a2c8def04431e1279e5c27381dd1af7dca6a81a1285d70cfa068273ba91f7cc8
Manifest pool/main/square-sdr/square-sdr_0.3.0_arm64.deb.release.json
Binary square-sdr_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. Older versions are replaced automatically; their store download links are removed after the new version is deployed.

@github-actions

Copy link
Copy Markdown
Contributor

❌ Package Validation Failed

  • ❌ square-sdr_0.3.0_arm64.deb installs files in disallowed locations:
    etc/wireplumber/wireplumber.conf.d/51-square-sdr-usb-duplex.conf — etc/ may only hold config named after the package square-sdr; wireplumber does not match / etc/ 下只能放与包名 square-sdr 相关的配置文件或目录,wireplumber 不符合
📁 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 = square-sdr
这次被拒绝的路径:
etc/wireplumber/wireplumber.conf.d/51-square-sdr-usb-duplex.conf

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

Package details / 安装包信息

square-sdr_0.3.0_arm64.deb

Field Value
Package square-sdr
Version 0.3.0
Previous version / 上一版 — (new package / 新应用)
Architecture arm64
Maintainer Josh Murray josh@tigerstyle.co.uk
Download size / 安装包大小 2.1 MB
Installed size / 安装后大小 3.7 MB
Files / 文件数 26
ELF binaries / ELF 二进制 1 (arm64)
Depends libc6, libstdc++6, libgcc-s1, libfreetype6, libpng16-16, libjpeg62-turbo, zlib1g, libasound2t64 | libasound2, libasound2-plugins
SHA-256 a2c8def04431e1279e5c27381dd1af7dca6a81a1285d70cfa068273ba91f7cc8

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

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

@MrJoshMurray

Copy link
Copy Markdown
Contributor Author

Duplicate: the 0.3.0 update was pushed to #590 to keep its place in the review queue.

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