chore(native-ui): embed doona 0.1.0-beta.14

This commit is contained in:
Zakk committed 2026-10-07 22:36:06 +11:00
1 parent b733289f65
commit 296bbd3cd2
3 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -30,6 +30,6 @@ KERNEL_RECENT_MODULES_SHA256=04326490265b87b3ba5d617beea6b61a4322072bbeb0eef0318
KERNEL_RECENT_RELEASE=7.2.5-070205-generic
# doona release embedded by the native-ui feature; ci/fetch-doona.sh reads it.
DOONA_VERSION=0.1.0-beta.12
DOONA_REVISION=37fb8e64ee7a6d4bb6066b033592916a5b08e760
DOONA_SHA256=5f11ab90da1794e6f03ff4001af00d35be47e564486f747984f1b3b82e101261
DOONA_VERSION=0.1.0-beta.14
DOONA_REVISION=9368bc203be9c8ed9f8b02fa58d0db5af00dd8a3
DOONA_SHA256=70222782611b8b9a2b3724d7c34faa9fb2bf76786c0dca3221ddd5f18c423328
+1 -1
View File
@@ -328,7 +328,7 @@ Automatic updates are on by default, every 24 hours; `auto_update.enabled: false
### Embedded doona provenance
Default-off `native-ui` implies `native-api` and embeds the doona build that Cargo reads at compile time from the absolute directory in `HONK_DOONA_DIR`; without it the build fails. `ci/fetch-doona.sh` downloads the release pinned in `.github/ci/pins.env` (currently doona `0.1.0-beta.12`, commit `37fb8e64ee7a6d4bb6066b033592916a5b08e760`), checks its SHA-256 and that it carries `THIRD-PARTY-NOTICES.txt` and every `LICENSES/` file its `NOTICE` names, drops any fonts and prints the directory: `export HONK_DOONA_DIR=$(ci/fetch-doona.sh)`. `just lint` and `just test-ci` run it when the variable is unset. Release builds include the embedded UI. The binary embeds the notices shipped in doona's program archive, and every release tarball carries them under `doona/`. The Noto Sans TC and SC fonts are not embedded. doona's CSS declares those fonts with `font-display: optional`, so the browser falls back to system fonts when the font requests return 404. To use Noto Sans, extract `doona-<version>.tar.gz` and `doona-fonts-<version>.tar.gz` from the [doona release](https://github.com/Zakkaus/doona/releases) into one directory and point `ui` at it, or install the `doona` and `doona-fonts` packages and set `ui: /usr/share/doona`. The corresponding GPL-3.0-only source is the doona tag [`v0.1.0-beta.12`](https://github.com/Zakkaus/doona/tree/v0.1.0-beta.12). The release workflow attaches `doona-source-0.1.0-beta.12.tar.gz` to the tag release and to the rolling Debug release; `ci/fetch-doona.sh --source` checks that the tag still points at the pinned commit and generates it with `git archive --format=tar --prefix=doona/ v0.1.0-beta.12 | gzip -n` (GNU gzip). Whoever redistributes a `native-ui` binary must provide that source archive and the notices with it (GPL-3.0 section 6).
Default-off `native-ui` implies `native-api` and embeds the doona build that Cargo reads at compile time from the absolute directory in `HONK_DOONA_DIR`; without it the build fails. `ci/fetch-doona.sh` downloads the release pinned in `.github/ci/pins.env` (currently doona `0.1.0-beta.14`, commit `9368bc203be9c8ed9f8b02fa58d0db5af00dd8a3`), checks its SHA-256 and that it carries `THIRD-PARTY-NOTICES.txt` and every `LICENSES/` file its `NOTICE` names, drops any fonts and prints the directory: `export HONK_DOONA_DIR=$(ci/fetch-doona.sh)`. `just lint` and `just test-ci` run it when the variable is unset. Release builds include the embedded UI. The binary embeds the notices shipped in doona's program archive, and every release tarball carries them under `doona/`. The Noto Sans TC and SC fonts are not embedded. doona's CSS declares those fonts with `font-display: optional`, so the browser falls back to system fonts when the font requests return 404. To use Noto Sans, extract `doona-<version>.tar.gz` and `doona-fonts-<version>.tar.gz` from the [doona release](https://github.com/Zakkaus/doona/releases) into one directory and point `ui` at it, or install the `doona` and `doona-fonts` packages and set `ui: /usr/share/doona`. The corresponding GPL-3.0-only source is the doona tag [`v0.1.0-beta.12`](https://github.com/Zakkaus/doona/tree/v0.1.0-beta.12). The release workflow attaches `doona-source-0.1.0-beta.12.tar.gz` to the tag release and to the rolling Debug release; `ci/fetch-doona.sh --source` checks that the tag still points at the pinned commit and generates it with `git archive --format=tar --prefix=doona/ v0.1.0-beta.12 | gzip -n` (GNU gzip). Whoever redistributes a `native-ui` binary must provide that source archive and the notices with it (GPL-3.0 section 6).
To reproduce the assets, extract the source archive into its own directory, use Node 22+ and `pnpm@11.15.1`, then run `pnpm install --frozen-lockfile`, `pnpm build` and `SOURCE_DATE_EPOCH=1790716798 pnpm package`. The epoch is the pinned upstream commit's timestamp; the source archive has no Git history. Use GNU tar and GNU gzip on `PATH` (verified with tar 1.35 and gzip 1.15); another gzip implementation can produce different archive hashes from identical tar bytes. Cargo builds embed only the files in `HONK_DOONA_DIR` and never build or download the frontend. That source's checker is `tools/conformance.mjs`; its live walk is read-only and skips controls, diagnostics and missing observed IDs. Check base and management contracts, and exercise browser actions separately: schema passes alone are not full UI, kernel or platform acceptance.
+1 -1
View File
@@ -344,7 +344,7 @@ DELETE 不接受 body/query:带有任一项时返回 `400 invalid_request`,b
### 内嵌 doona 来源
默认关闭的 `native-ui` 隐含 `native-api`,编译时从 `HONK_DOONA_DIR` 指定的绝对路径目录读取 doona 构建产物并内嵌;未设置该变量时构建失败。`ci/fetch-doona.sh` 下载 `.github/ci/pins.env` 固定的发布包(当前为 doona `0.1.0-beta.12`、提交 `37fb8e64ee7a6d4bb6066b033592916a5b08e760`),校验 SHA-256,确认包内含 `THIRD-PARTY-NOTICES.txt` 及 `NOTICE` 引用的全部 `LICENSES/` 文件,删除字体并输出目录:`export HONK_DOONA_DIR=$(ci/fetch-doona.sh)`。未设置该变量时,`just lint` 与 `just test-ci` 自动执行该脚本。发布产物包含内嵌 UI;二进制内嵌 doona 程序包自带的 notices,每个发布 tarball 也在 `doona/` 目录附带这些文件。内嵌产物不含 Noto Sans TC 与 SC 字体。doona 的 CSS 以 `font-display: optional` 声明这些字体,因此字体请求返回 404 时浏览器使用系统字体。需要 Noto Sans 时,将 [doona 发布页](https://github.com/Zakkaus/doona/releases)的 `doona-<version>.tar.gz` 与 `doona-fonts-<version>.tar.gz` 解压到同一目录并让 `ui` 指向该目录,或安装 `doona` 与 `doona-fonts` 软件包并设置 `ui: /usr/share/doona`。对应的 GPL-3.0-only 源码是 doona 标签 [`v0.1.0-beta.12`](https://github.com/Zakkaus/doona/tree/v0.1.0-beta.12)。发布流程将 `doona-source-0.1.0-beta.12.tar.gz` 附加到正式标签发布与滚动 Debug 发布;该包由 `ci/fetch-doona.sh --source` 生成:先确认标签仍指向固定提交,再执行 `git archive --format=tar --prefix=doona/ v0.1.0-beta.12 | gzip -n`(GNU gzip)。再分发 `native-ui` 二进制时,须按 GPL-3.0 第 6 条一并提供该源码包与 notices。
默认关闭的 `native-ui` 隐含 `native-api`,编译时从 `HONK_DOONA_DIR` 指定的绝对路径目录读取 doona 构建产物并内嵌;未设置该变量时构建失败。`ci/fetch-doona.sh` 下载 `.github/ci/pins.env` 固定的发布包(当前为 doona `0.1.0-beta.14`、提交 `9368bc203be9c8ed9f8b02fa58d0db5af00dd8a3`),校验 SHA-256,确认包内含 `THIRD-PARTY-NOTICES.txt` 及 `NOTICE` 引用的全部 `LICENSES/` 文件,删除字体并输出目录:`export HONK_DOONA_DIR=$(ci/fetch-doona.sh)`。未设置该变量时,`just lint` 与 `just test-ci` 自动执行该脚本。发布产物包含内嵌 UI;二进制内嵌 doona 程序包自带的 notices,每个发布 tarball 也在 `doona/` 目录附带这些文件。内嵌产物不含 Noto Sans TC 与 SC 字体。doona 的 CSS 以 `font-display: optional` 声明这些字体,因此字体请求返回 404 时浏览器使用系统字体。需要 Noto Sans 时,将 [doona 发布页](https://github.com/Zakkaus/doona/releases)的 `doona-<version>.tar.gz` 与 `doona-fonts-<version>.tar.gz` 解压到同一目录并让 `ui` 指向该目录,或安装 `doona` 与 `doona-fonts` 软件包并设置 `ui: /usr/share/doona`。对应的 GPL-3.0-only 源码是 doona 标签 [`v0.1.0-beta.12`](https://github.com/Zakkaus/doona/tree/v0.1.0-beta.12)。发布流程将 `doona-source-0.1.0-beta.12.tar.gz` 附加到正式标签发布与滚动 Debug 发布;该包由 `ci/fetch-doona.sh --source` 生成:先确认标签仍指向固定提交,再执行 `git archive --format=tar --prefix=doona/ v0.1.0-beta.12 | gzip -n`(GNU gzip)。再分发 `native-ui` 二进制时,须按 GPL-3.0 第 6 条一并提供该源码包与 notices。
复现时将源码包解压到独立目录,用 Node 22+、`pnpm@11.15.1` 执行 `pnpm install --frozen-lockfile`、`pnpm build`、`SOURCE_DATE_EPOCH=1790716798 pnpm package`。该 epoch 是固定上游提交的时间;源码包不含 Git 历史。`PATH` 中须使用 GNU tar 和 GNU gzip(已验证 tar 1.35、gzip 1.15);其他 gzip 实现即使压缩相同 tar 字节,也可能产生不同包摘要。Cargo 构建只内嵌 `HONK_DOONA_DIR` 中的文件,不构建也不下载前端。该源码的 checker 为 `tools/conformance.mjs`;live walk 只读,跳过控制、诊断和缺少已观测 ID 的资源。基础与管理契约应分别核对,浏览器操作另行验收;schema 通过不等于完整 UI、内核或部署矩阵通过。