Compare commits

..

No commits in common. "a7028fd49afb4ed21f245dab00a5b840291c9303" and "c4587cc19418da23354c36e003c5d143b5dd5de9" have entirely different histories.

4 changed files with 17 additions and 53 deletions

View File

@ -1,54 +1,30 @@
# zchunk # zchunk
#### 介绍 #### 介绍
zchunk 是一种压缩文件格式,专为高效增量而设计,同时保持良好的压缩性能,可将文件拆分为独立的块。 这允许在下载文件的新版本时仅下载更改的块。zchunk 文件受到强校验和的保护,以验证下载的文件实际上是想要的文件。 zchunk is a compressed file format that splits the file into independent chunks.
zchunk is a compressed file format that splits the file into independent chunks. This allows you to only download changed chunks when downloading a new version of the file. Files can hosted on any web server that supports HTTP ranged requests, with no special software required to serve the files (though to download only the changed chunks, your client must be zchunk-aware).
#### 软件架构
软件架构说明
#### 安装教程 #### 安装教程
Install zchunk rpm package: 1. xxxx
2. xxxx
yum install zchunk 3. xxxx
要从源码构建和安装 zchunk首先安装 meson 并运行
meson build
cd build
ninja
ninja test
sudo ninja install
如果正在构建一些库存储在 /usr/local 中的操作系统,则需要替换上面的 meson build如下所示
CFLAGS=-I/usr/local/include CXXFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib meson build
#### 使用说明 #### 使用说明
To decompress a zchunk file, simply run: 1. xxxx
2. xxxx
unzck <filename> 3. xxxx
To compress a new zchunk file, run:
zck <filename>
To download a zchunk file, run:
zckdl -s <source> <url of target>
To read a zchunk header, run:
zck_read_header <file>
#### 参与贡献 #### 参与贡献
master分支使用最新的上游版本如果检测到上游有最新版本发布先形成issue后再提交对应PR更新流程如下。 1. Fork 本仓库
1. 提交issue 2. 新建 Feat_xxx 分支
2. Fork 本仓库 3. 提交代码
3. 新建 Feat_xxx 分支 4. 新建 Pull Request
4. 提交代码
5. 新建 Pull Request
#### 特技 #### 特技

BIN
zchunk-1.2.3.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,8 +1,8 @@
Name: zchunk Name: zchunk
Version: 1.3.2 Version: 1.2.3
Release: 1 Release: 1
Summary: Compressed file format that allows easy deltas Summary: Compressed file format that allows easy deltas
License: BSD-2-Clause AND MIT License: BSD-2-Clause
URL: https://github.com/zchunk/zchunk URL: https://github.com/zchunk/zchunk
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc BuildRequires: gcc
@ -72,18 +72,6 @@ install contrib/gen_xml_dictionary %{buildroot}%{_libexecdir}/zck_gen_xml_dictio
%{_includedir}/zck.h %{_includedir}/zck.h
%changelog %changelog
* Wed Feb 28 2024 lijian <lijian2@kylinos.cn> - 1.3.2-1
- downgrade version to 1.3.2
* Wed Jan 03 2024 duyiwei <duyiwei@kylinos.cn> - 1.4.0-1
- upgrade version to 1.4.0
* Thu Oct 19 2023 duyiwei <duyiwei@kylinos.cn> - 1.3.2-1
- upgrade version to 1.3.2 and Fix CVE-2023-46228
* Tue May 30 2023 duyiwei <duyiwei@kylinos.cn> - 1.3.1-1
- upgrade version to 1.3.1
* Mon Nov 07 2022 duyiwei <duyiwei@kylinos.cn> - 1.2.3-1 * Mon Nov 07 2022 duyiwei <duyiwei@kylinos.cn> - 1.2.3-1
- upgrade version to 1.2.3 - upgrade version to 1.2.3