mirror of
https://github.com/Cateners/tiny_computer.git
synced 2026-05-20 16:35:47 +08:00
Add signal 9 info, adjust readme
This commit is contained in:
16
README.md
16
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user