Skip to content
gaokun3-devPublic

About

Live installer and Windows installer for Android on the Huawei MateBook E Go 2022 / 2023

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

236 Commits

Folders and files

Repository files navigation

gaokun3安装器

华为MateBook E Go(Snapdragon 8cx Gen 3 / SC8280XP,代号gaokun3)的Android安装器:

  • Live安装器:从U盘启动的Linux环境,在其中把Android安装到磁盘。
  • Windows安装器:在已经启动的Windows中,把Android安装到系统盘的空闲空间,不需要U盘。

两者共用同一个C后端与界面代码。系统文件取自gaokun-android发布的ROM,安装说明见该仓库的docs/INSTALL.zh-CN.md。

相关仓库

仓库 内容
gaokun-android ROM的Release(安装器下载的系统文件)、安装说明与文档
gk3boot 统一启动入口。本仓库以submodule installer/backend/third_party/gk3boot引用,后端按源码编入libgk3core

克隆后运行git submodule update --init。

目录结构

路径 内容
installer/backend/ C后端:Live安装器使用的gk3l与Windows安装器使用的gk3w
installer/common/ 两个界面共用的Flutter代码,以及界面与后端之间的行协议
installer/live/ Live安装器的Flutter界面
installer/windows/ Windows安装器
installer/tools/ Live安装器镜像的构建与测试脚本
patches/e2fsprogs/ Windows安装器自带的mke2fs.exe所用的补丁,由installer/backend/mke2fs/build.sh应用
scripts/extract-kconfig.py 从内核镜像中取出编译时的.config,构建Live安装器时检查内核选项
.github/workflows/ 两个安装器的构建与发布

测试

make -C installer/backend test
bash installer/tools/test/test-in-container.sh installer/backend/test/linux/test-{probe,apply,jobs,live}.sh

界面的测试在installer/live/与installer/windows/中运行flutter test。

发布

两个安装器都由GitHub Actions构建,推送标签后生成草稿Release,核对后发布。Release发布在本仓库。

  • Windows安装器:推送windows-installer-vX.Y.Z标签(预发布为windows-installer-vX.Y.Z-rc.N),见installer/windows/README.md。
  • Live安装器:每个ROM发布之后各出一版,推送live-installer-v<安装器版本>-for-<ROM标签>标签(如live-installer-v0.2.0-for-v1.0.0),内核与系统文件取自gaokun-android中该ROM的Release。
    1. 推送标签前运行git diff --stat <上一个Live安装器标签> HEAD -- installer/live installer/common installer/backend installer/tools:有影响Live安装器的代码改动时,先更新installer/live/pubspec.yaml与installer/live/lib/version.dart中的版本号;仅改动注释或Windows安装器时保持不变。
    2. 待installer-live.yml生成草稿Release后,核对两个ISO、SHA256SUMS与release.txt(GK3_ROM_TAG、GK3_BOOTIMG_SHA256),补写说明并发布。

发布任一安装器后,更新gaokun-android的README*.md(“获取方式”与“最新版本”两行)与docs/INSTALL*.md(下载一节)中安装器的链接。

Windows安装器按标签在Release列表中查找最新的Live安装器:0.2.1及更早的版本只查找gaokun-android的Release;之后的版本先查找本仓库,本仓库的列表无法获取或其中没有可用的Live安装器时,再查找gaokun-android。因此已发布在gaokun-android的安装器Release不要删除。

提交改动

目前安装器的改动仍以PR提交至gaokun-android的dev分支(installer/),由维护者同步至本仓库;gaokun-android的dev分支改用本仓库后,改为直接向本仓库的main分支提交PR。

许可

GPL-3.0-or-later(LICENSE),与gaokun-android相同。安装器镜像中的第三方组件见gaokun-android的NOTICE。

About

Live installer and Windows installer for Android on the Huawei MateBook E Go 2022 / 2023

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages