发布前修正:源码包瘦身与 Firefox manifest 版本说明 - #364
Open
Teeeeeeeerry wants to merge 2 commits into
Open
Conversation
Firefox 的 AMO 要求随扩展提交源码包。wxt 默认把整个仓库塞进去, 实测 5.1MB 里有 4.3MB 是无关内容:docs/testing/logs/ 下每次跑测试 都会重写的覆盖率与 playwright 报告(单个 HTML 就 528KB)、商店截图 1.6MB、设计稿,对复现构建毫无用处。 加 zip.excludeSources 后降到 278KB,src / entrypoints / public / scripts / patches 与全部构建配置、README、LICENSE 均在。 Co-Authored-By: zhexuancai-uts <261878103+zhexuancai-uts@users.noreply.github.com>
第 5 行把三个浏览器一并写作 Manifest V3,实际打包产物里只有 Chrome 与 Edge 是 mv3,Firefox 是 mv2 —— WXT 对 Firefox 的默认 目标,host 权限并入 permissions。发 release 核对产物时发现。 Co-Authored-By: zhexuancai-uts <261878103+zhexuancai-uts@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
两处发布前核对产物时发现的问题。#363 合并时第一个提交还没赶上,一并补进来。
源码包排除文档、商店素材与测试产物
Firefox 的 AMO 要求随扩展提交源码包。wxt 默认把整个仓库塞进去,实测 5.1MB 里有 4.3MB 是无关内容:
docs/testing/logs/下每次跑测试都会重写的覆盖率与 playwright 报告(单个 HTML 就 528KB)store/screenshots/商店截图 1.6MBdesign/设计稿这些对复现构建毫无用处,只让审核者多下载 20 倍体积。加
zip.excludeSources后降到 278KB,src/entrypoints/public/scripts/patches与全部构建配置、README、LICENSE 均已核实仍在。README 更正 Firefox 的 manifest 版本
README 第 5 行把三个浏览器一并写作 Manifest V3。核对打包产物后发现只有 Chrome 与 Edge 是 mv3,Firefox 产物是 mv2 —— WXT 对 Firefox 的默认目标,host 权限并入
permissions。已改为「Chrome / Edge(Manifest V3)· Firefox(MV2)」。只动构建配置与文档,不影响扩展产物,版本号不变。