Repository navigation
新加 fetch 项:新根目录从空补全组件(命令行和补全组件.bat) - #12
Merged
Merged
Conversation
0.37.0–0.38.0 的「补全组件.bat」装系统镜像必然失败,别的项都把组件链到官方 SDK,一直没测出来。 打完包用组包目录跑:命令行 components fetch 和重定向输入的批处理各一遍,两样都要装好, 再跑一次 fetch 都算齐全;新版批处理还要把下载源记成 auto。只有取许可协议清单要联网。 Refs ModAVD/ModAVD#45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新加一项
fetch:打完包以后用组包目录跑,在新的根目录里从空补全组件,命令行和「补全组件.bat」两条路各走一遍。0.37.0–0.38.0 的「补全组件.bat」装系统镜像必然失败,回归一直没抓到:别的项都把 adb 和系统镜像链到官方 SDK,不走补全组件。
做什么
tools\、sdk\emulator里的emulator.exe和source.properties。tools\modavd.exe components fetch --accept-license --keep-downloads --json。两样都要装好,而且都是这次装的。downloads\,不再重下 1.5 GB。tools\里有components-sources.txt)先选下载源,回车是自动,再同意许可协议;老版只问许可协议。结尾的pause也喂一个回车。auto。components fetch,两样都要算齐全、跳过。这里用的是 fetch 的严格规则,不是status的宽松规则。-Cache(本机配置ComponentCache)给了放着两个 zip 的目录时,一次都不下载;没给时只下载一次。suites/release.psd1的PostPackage加上fetch -Package <组包目录>,所有范围都提示跑,约 1–2 分钟。README 的项目表、本机配置表和local.example.psd1跟着补上。怎么验证的
用的是 Windows、pwsh 7,从网上下载(没给
-Cache):pass:false。pause,PowerShell 脚本的退出码被它吞了;tools\modavd.exe和emulator.exe,配上 去掉随包的三个批处理和三个脚本,补全组件和问题反馈改由管理器和命令行做 ModAVD#119 的批处理和components-sources.txt。结果pass:true:命令行 42 秒、批处理 20 秒装好,下载源记成auto。.ps1/.psd1语法解析都通过,suites/release.psd1和local.example.psd1都能导入。Refs ModAVD/ModAVD#45