Make the preview APK reproducible from its tag
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- android, github-actions, react-native, typescript
- 领域
- build-system, mobile, release
调研方向
Start with the APK recipe in docs/devices.md and the release workflow in .github/workflows/release-apk.yml; trace how the tag version and workflow run number reach apps/mobile/app.json and the release notes. Build twice from one tag as the recipe describes, then compare the unzipped APK contents while excluding META-INF/. Document each source of differences and whether it was fixed. Done means matching unsigned contents, an automated check, and the recipe on the download page and in release notes.
由索引模型根据 Issue 内容生成。
描述
Why
Anyone can build Hermit from the tag a preview APK came from, but the result doesn't match the published APK byte for byte, and nothing checks it. The PRD lists the reproducible APK as open (SL-45 and NFR-15 in docs/prd/hermit-prd.md). A rebuild that matches, apart from the signature, is how people can trust that the APK is the code they read.
What to do
- Make the recipe complete. Before it builds,
.github/workflows/release-apk.ymlwrites the version from the tag, and aversionCodeequal to the workflow's run number, intoapps/mobile/app.json. Put the same step in the recipe in docs/devices.md ("Or build it yourself"), and print theversionCodein the release notes so a rebuild can use it. - Build twice from the same tag, on two machines or two clean clones, following docs/devices.md. Compare the APKs with the signature left out: unzip both and compare every file except
META-INF/, or usediffoscope. - Find and remove each source of difference, such as timestamps, file order, absolute paths, the JavaScript bundle or the native builds. List what you find in the pull request, even the parts you couldn't fix.
- When two builds match, add a script or a CI job that checks it, and put the recipe in the release notes.
Done when
- Two builds from the same tag give APKs that match apart from the signature, and a script or a CI job shows it.
- docs/devices.md and the site's download page say so, and the release notes carry the recipe.
How to check
Build twice as docs/devices.md says, then compare the unzipped APKs without META-INF/.
Keep in mind
- Compare unsigned contents. Never ask for the preview key, and never commit a keystore or a password.
- The app gains no network call. Build-time downloads are fine when their versions are pinned.
- 主要语言
- TypeScript
- 星标
- 11
- 派生
- 0
- 平均合并
- 10 分钟
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DojoCodingLabs/hermit 的其他 Issue
-
docs good first issue
难度 2/5 1-3 小时 新手友好度 87/100
DojoCodingLabs/hermit#73 ·
维护者通常 1 天内回复
-
device-lab
难度 2/5 1-3 小时 新手友好度 70/100
DojoCodingLabs/hermit#45 ·
维护者通常 1 天内回复
-
device-lab
难度 2/5 1-3 小时 新手友好度 62/100
DojoCodingLabs/hermit#44 ·
维护者通常 1 天内回复
-
device-lab
难度 2/5 1-3 小时 新手友好度 72/100
DojoCodingLabs/hermit#43 ·
维护者通常 1 天内回复
-
agent-friendly docs good first issue
难度 2/5 1-3 小时 新手友好度 88/100
DojoCodingLabs/hermit#39 ·
维护者通常 1 天内回复
查看 DojoCodingLabs/hermit 的全部 Issue
相似的 Issue
-
bug zoo
难度 2/5 1-3 小时 新手友好度 76/100
software-mansion/runntime#151 ·
维护者通常 4 天内回复
-
难度 1/5 1-3 小时 新手友好度 86/100
sidebandstudio/clawtrate#728 ·
维护者通常 1 天内回复
-
enhancement github_actions help wanted
难度 2/5 1-3 小时 新手友好度 78/100
tranquilo-art/tranquilo-app#254 ·
维护者通常 1 天内回复
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 88/100
Tfoucher5/fuzzy-toolkit#44 ·
维护者通常 1 天内回复
-
bug tooling
难度 2/5 1-3 小时 新手友好度 73/100
endora-commerce/endora-commerce#1978 ·
维护者通常 1 天内回复