Add signal 9 info, adjust readme

This commit is contained in:
Caten
2023-11-07 17:29:49 +08:00
parent 6e51e5b2d2
commit 86ce2315d4
4 changed files with 69 additions and 55 deletions

View File

@@ -40,6 +40,8 @@ assets的文件来源如下:
- 启动时会尝试挂载手机的一些字体目录(AppFiles/Fonts、Fonts和/system/fonts), 如果这些目录下有字体文件的话会一并加载到系统中,无需额外安装;
- 最后采用tar.xz压缩用split命令分成了xa*等多个文件(低内存设备一次性拷贝大文件会导致软件闪退)。
完整的容器制作过程可以在[这里](https://github.com/Cateners/build-tiny-rootfs)看到。
数据包不再在assets中更新而是随releases提供主要是为了避免git越来越大
lib目录
@@ -51,6 +53,20 @@ lib目录
- G 全局变量类
- Workflow 从软件点开到容器启动的所有步骤
## 编译
你需要配置好flutter和安卓sdk然后克隆此项目。
在编译之前需要在release中下载系统rootfs(或者[自行制作](https://github.com/Cateners/build-tiny-rootfs))之后使用split命令分割拷贝到assets。一般我将其分为98MB。
`split -b 98M debian.tar.xz`
然后修改workflow的代码找到复制资源的部分把生成的xa\*名字写进去(我还不知道怎么写代码识别有多少个xa*文件)
接下来就可以编译了。我使用的命令如下:
`flutter build apk --target-platform android-arm64 --split-per-abi --obfuscate --split-debug-info=tiny_computer/sdi`
## 目前已知bug
多用户/分身情形无法sudo, 其它见issue