# incubator_solution **Repository Path**: dongjinguang/incubator_solution ## Basic Information - **Project Name**: incubator_solution - **Description**: 针对OpenHarmony-SIG孵化仓与OpenHarmony 主线仓联合构建验证方案进行简要描述 - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-05-19 - **Last Updated**: 2023-05-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 方案主要过程描述 --------------- 1. 创建文件:在工作目录中创建以下文件并将内容复制到文件中: * repositories.json:主线仓库与孵化仓库的下载路径的 JSON 描述文件。 * patches.json:补丁与待合入主线仓库的对应关系的 JSON 描述文件。 * apply_patches.py:用于解析 JSON 描述文件并将补丁合入主线仓库的 Python 脚本。 2. 修改描述文件:根据实际情况,修改 repositories.json 文件中的仓库名称和路径,以及 patches.json 文件中的补丁与项目的对应关系。 3. 补丁合入:运行 apply_patches.py 脚本,它将解析 repositories.json 和 patches.json 文件,并将补丁合入对应的主线仓库。这一步确保了补丁被正确应用到主线仓库中。 4. 主线项目构建:在 apply_patches.py 脚本执行后,进行版本级构建建。 5. 孵化仓库验证:对孵化仓库与主线仓进行联合编译并进行验证 ![流程图](./figures/incubator_diagram.png) 方案概述 ------ * 通过 repositories.json 文件描述了主线仓库与孵化仓库的下载路径。 * 通过 patches.json 文件描述了补丁与待合入主线仓库的对应关系。 * apply_patches.py 脚本解析 repositories.json 和 patches.json 文件,并将补丁合入对应的主线仓库。 使用该方案,可以通过简单的配置文件和脚本来管理补丁的合入和项目的构建。这样,你可以确保补丁被以临时方式正确的合入到主线仓库中,并进行整体项目的构建和验证。