Archive rebuild: preserve RPF resource metadata before enabling RPF inputs

未关闭
#46 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
18/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
rust
领域
cli, tooling

调研方向

Start by locating the archive rebuild command and the checkpoint that currently restricts it to IMG1/2/3, then read the generic add_file writer path the body says is downgrading resource entries. Map how entry kind, native headers and resource/encryption metadata are currently carried through extraction versus creation. Done means rebuild preserves V2/V6 and V7 resource entries byte-for-byte, refuses unrepresentable layouts, and regression tests reopen outputs with independent readers — but this spans several format subsystems and is design-heavy, not a first-timer task.

由索引模型根据 Issue 内容生成。

描述

Release review found that rebuilding RPF V2/V6 through extracted bodies and the generic add_file builder can silently turn resource entries into ordinary binary files, losing native headers/flags.

The checkpoint now restricts archive rebuild to IMG1/2/3. Keep this guard until RPF preservation is implemented.

  • Carry entry kind, native headers and all resource/encryption metadata into the writer.
  • Cover unchanged V2/V6 resource entries and V7 resources with byte/semantic preservation checks.
  • Refuse layouts the writer cannot represent instead of downgrading them.
  • Reopen outputs with independent readers.
  • Add regression tests before broadening the accepted archive versions.

Existing RPF inspection/extraction and creation commands remain available; this issue concerns the new rebuild command.

主要语言
Rust
星标
42
派生
4
平均合并
8 天 19 小时
30 天内合并 PR
3

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

VIRUXE/rage-cli 的其他 Issue

查看 VIRUXE/rage-cli 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。