[Feature] Integrity verification
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
调研方向
首先阅读当前的 AppImage 格式规范以及链接的 AppImageSpec issues #29 和 #34。比较 MD5、文件大小和 CRC 这几种提议的方法,然后确定规范应采用哪种完整性机制,以及将如何验证完成情况。
由索引模型根据 Issue 内容生成。
描述
AppImages are files which can get really big in size, and download errors can occur with such sizes
I propose to add some way to (at least try to) verify it's integrity at launch
Why ?
As of now, a partially downloaded AppImage will fail to launch with
Something went wrong trying to read the squashfs image.
Cannot mount AppImage, please check your FUSE setup.
You might still be able to extract the contents of this AppImage
if you run it with the --appimage-extract option.
See https://github.com/AppImage/AppImageKit/wiki/FUSE
for more information
open dir error: No such file or directory
It is maybe harmless in this case, but I think it could potentially cause problems if the partially downloaded AppImage seems like a legit squashfs image. (This is only a theory, I do not have any proof this can happen)
Implementation propositions :
- Use https://github.com/AppImage/AppImageSpec/issues/29 and verify the md5sum of the AppImage on launch.
Cons : as pointed there, that would be costly. Plus, I'm not sure if this section is actually going to be in the specification - Store the file size in bytes in an ELF section, maybe
.appimage_size, and verify the size of the executed file is the same
Cons : some programs might zerofill the file and fill bytes as their download them - Store a CRC checksum in an ELF section, maybe
.crc_checksum, and verify it. I think that's the best option, because CRC is an algorithm made for file integrity (as opposed to a simple file size verification), and is more lightweight than MD5
I think this feature should be looked at before https://github.com/AppImage/AppImageSpec/issues/34 (because well, it would modify the spec)
- 主要语言
- 没有语言数据
- 星标
- 94
- 派生
- 30
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AppImage/AppImageSpec 的其他 Issue
-
难度 5/5 一周以上 新手友好度 25/100
AppImage/AppImageSpec#60 · 7 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
AppImage/AppImageSpec#59 · 15 条评论 · 2 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
AppImage/AppImageSpec#48 · 2 条评论 ·
-
help wanted
难度 5/5 一周以上 新手友好度 25/100
AppImage/AppImageSpec#44 · 10 条评论 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 35/100
AppImage/AppImageSpec#40 · 1 条评论 ·
查看 AppImage/AppImageSpec 的全部 Issue
相似的 Issue
-
F-Droid FOSS question
难度 1/5 1 小时以内 新手友好度 75/100
d4rken-org/butler#365 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 85/100
ShaftHQ/chaosengine-harness#423 ·
维护者通常 1 天内回复
-
external-plugin ready-for-review
难度 2/5 1-3 小时 新手友好度 72/100
github/awesome-copilot#6655 · 1 条评论 ·
维护者通常 1 天内回复
-
documentation needs-triage
难度 2/5 1-3 小时 新手友好度 68/100
X11Libre/xserver#4255 · 2 条评论 ·
维护者通常 1 天内回复
-
nightly-cleanup
难度 2/5 1-3 小时 新手友好度 78/100
max-sixty/worktrunk#4939 · 1 个 reaction ·
维护者通常 1 天内回复