Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal:SplitDiffData #398

Open
SysVR opened this issue Oct 9, 2024 · 2 comments
Open

Proposal:SplitDiffData #398

SysVR opened this issue Oct 9, 2024 · 2 comments

Comments

@SysVR
Copy link

SysVR commented Oct 9, 2024

Proposal:
Splitting at the specified size during patch generation: A separate plain text index file will be generated. “File name and extension are free to choose.” The mechanism allows for patching the split data by reading the index file during patch application. Additionally, if the size exceeds 4GB during SFX, it will be possible to automatically split into two parts.
The index file used for patching will include:

File name, Checksum data, File size
The file name part can specify the hierarchy from relative paths or absolute paths.

Example:

patch.diff,E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855,1234567890
core\patch.diff,E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855,1234567890
D:\update\core\patch.diff,E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855,1234567890
\update\core\patch.diff,E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855,1234567890
\localhost\D$\update\core\patch.diff,E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855,1234567890

@sisong
Copy link
Owner

sisong commented Oct 10, 2024

In what scenarios would you use this feature?
I probably wouldn't have included it in the development plan.

If you need this feature, consider doing it yourself: the patch function supports diffFile as an input stream, and you can abstract multiple files into an input stream by yourself.

@SysVR
Copy link
Author

SysVR commented Oct 14, 2024

thank you reply.

In what scenarios would you use this feature?
I probably wouldn't have included it in the development plan.

Storage media such as CDs and DVDs with limited maximum capacity.
Homepage/blog hosting services with limited maximum capacity.
Currently, after generating an SFX, I split it into specified sizes using uncompressed RAR.
I think it would be convenient if HDiffPatch itself had a splitting and merging function, so I am proposal (not requesting) this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants