From 81de0f533136697d52565d842ccb09cc3baa1759 Mon Sep 17 00:00:00 2001 From: Zyy Date: Sat, 7 Nov 2026 03:00:01 +0800 Subject: [PATCH] build(release): keep the plugin manifest inside distribution packages Co-authored-by: Codex --- .github/scripts/package-release.rb | 1 - .github/scripts/published-channels.rb | 2 +- deploy/README.md | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/scripts/package-release.rb b/.github/scripts/package-release.rb index 6b5744506..97d48ea85 100644 --- a/.github/scripts/package-release.rb +++ b/.github/scripts/package-release.rb @@ -34,7 +34,6 @@ module ReleasePackage default_image = "${CPR_IMAGE:-#{image}:latest}" raise 'Expected exactly one default application image in deploy/compose.yaml' unless compose.scan(default_image).length == 1 File.write("#{release_dir}/compose.yaml", compose.sub(default_image, "${CPR_IMAGE:-#{image}:#{ENV.fetch('DOCKER_VERSION')}}")) - FileUtils.cp(MANIFEST, release_dir) platforms.each do |platform| raise "Unsupported archive format: #{platform['archive']}" unless platform['archive'] == 'tar.gz' diff --git a/.github/scripts/published-channels.rb b/.github/scripts/published-channels.rb index 45aaf7c74..2205b95b5 100644 --- a/.github/scripts/published-channels.rb +++ b/.github/scripts/published-channels.rb @@ -87,7 +87,7 @@ module PublishedChannels platforms = YAML.safe_load(Base64.decode64(data.fetch('content'))).fetch('platforms') raise "Missing platforms for #{tag}" if platforms.empty? expected = platforms.map { |p| ReleaseMetadata.archive_name(version, p) } - expected.concat(%w[checksums.txt compose.yaml config.example.yaml plugin-release-manifest.json]) + expected.concat(%w[checksums.txt compose.yaml config.example.yaml]) expected << 'version.yaml' if index assets = release.fetch('assets').select { |a| a.fetch('state') == 'uploaded' && a.fetch('size').positive? }.to_h { |a| [a.fetch('name'), a] } missing = expected - assets.keys diff --git a/deploy/README.md b/deploy/README.md index 85dc25c05..eb52f7969 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -943,7 +943,7 @@ Release 必须提供当前 OS/架构的 `codex-proxy-rs___.ta | 文件或目录 | 用途 | | --- | --- | -| `plugin-release-manifest.json` | 固定宿主版本、提交、平台与支持的插件合同;插件列表当前为空 | +| `plugins/official/plugin-release-manifest.json` | 随平台安装包和镜像分发,记录宿主版本、提交与支持的插件合同 | | 可执行文件同目录的 `plugins/official` | 随受信宿主发行物部署的只读目录,与二进制、Web 资源成套更新或恢复 | - 下载更新时校验发行身份,插件合同不兼容不阻止安装。点击重启时检查已安装目标版本,列出不兼容插件的名称和原因;确认后重启,不兼容实例保持未启动,启用配置、绑定、密钥和私有数据保留