chore(plugin): 纠正『桌面包内置插件』的错误假设;annotate 试点回退单文件;市场发布 browser 1.7.0

This commit is contained in:
qiqi committed 2026-11-20 10:10:32 +08:00
1 parent 496e4b8562
commit d98580065f
5 files changed
+12 -24

No files matched your search

+7
View File
@@ -14,6 +14,13 @@
> 3. 核验正式地址版本 → 之后才移动 `stable` / `stable-verified-<日期>` 标签、更新本 CHANGELOG、写 GitHub Release(`gh release create`)。
> 测试发现问题 → 改 → 再 `deploy:test`,正式环境不受影响。回滚点 `git reset --hard stable`。
## v3.25.45(2026-11-20)纠正:插件只能来自市场(桌面包不内置插件)
- 事实纠正:`beforeBuildCommand` 跑 `scripts/strip-plugins.js`,打包前把 `dist/plugins` 移出 —— **桌面包里没有任何内置插件**;
删除 `<资料目录>/plugins/` 后插件全部消失属预期,不是 bug。
- 因此 `image-annotate` 的目录化试点**回退为单文件**:市场只支持单文件,目录插件无处可装,等 M3(zip 安装)再切回。
- 市场已发布 **browser 1.7.0**(最近访问走 `ctx.data`),公网校验:index 版本 1.7.0、文件 HTTP 200、sha256 一致。
## v3.25.44(2026-11-20)修:资料目录里的旧外置插件会盖住内置升级
- 症状:客户端升到 3.25.43,设置里浏览器插件仍显示 **1.6.0**;资料目录 `plugins/` 下残留的外置 1.6.0 覆盖了随包的内置 1.7.0,且**没有任何更新入口**。
-17
View File
@@ -1,17 +0,0 @@
{
"id": "image-annotate",
"name": "标注 / 修图",
"version": "1.20.6",
"apiVersion": 1,
"main": "main.js",
"description": "在画布内标注、涂抹、局部重绘",
"author": "official",
"icon": "🖌️",
"tags": [
"修图",
"标注"
],
"files": {
"main.js": "7a865c7c353c3fbcaac551a8aeb5acd1bf624ca25f104db96fce493c3084b24f"
}
}
+2 -6
View File
@@ -19,13 +19,9 @@
},
{
"id": "image-annotate",
"dir": "image-annotate",
"main": "main.js",
"style": "",
"file": "plugin-image-annotate.7a865c7c353c.js",
"version": "1.20.6",
"files": {
"main.js": "7a865c7c353c3fbcaac551a8aeb5acd1bf624ca25f104db96fce493c3084b24f"
}
"integrity": "sha256-eoZcfDU8P7yqxVGorrWs0b9iTKJfEE25b85JPDCEsk8="
},
{
"id": "image-vectorize",
+3 -1
View File
@@ -12,7 +12,9 @@ const srcRoot = process.argv[2] ? path.resolve(process.argv[2]) : path.resolve(r
const outDir = path.join(root, 'plugins', 'runtime')
const IDS = ['batch-export', 'blank-canvas', 'browser', 'image-annotate', 'image-vectorize', 'style-source', 'white-bg-800', 'xianyi-cutout']
// v3.25.41(M1):目录化插件试点 —— 这些 id 产出 <id>/{manifest.json,main.js},其余仍是单文件(双轨兼容)
const FOLDER_IDS = ['image-annotate']
// ⚠️ 2026-11-20 修正:桌面包不随包发插件(scripts/strip-plugins.js),插件只能从市场装,
// 而市场目前只支持单文件 ⇒ 目录形态暂不用于生产插件,等 M3(zip 安装)落地再启用。
const FOLDER_IDS = []
const sha = (buf) => crypto.createHash('sha256').update(buf).digest()
const shaHex = (buf) => sha(buf).toString('hex')