Move project test environments into the workspace
This commit is contained in:
@@ -29,6 +29,8 @@ python "移动端相关内容/安卓app/构建与发布/build_android.py" --work
|
||||
|
||||
路径实测:AGP 默认拒绝非 ASCII 路径;启用 `android.overridePathCheck=true` 后编译继续,但当前 JBR/Gradle 下 JVM 测试出现类加载失败。在 ASCII 隔离目录同一测试通过,故当前使用该回退。2026-09-25 已在全新且包含空格的 ASCII 构建根目录重新执行全部 92 个任务,JVM 测试及两个 debug APK 均成功;保留中文源码位置。
|
||||
|
||||
项目专用 UI 构建现使用 [本机环境入口](../../../测试相关资料/如何测试/本机测试环境/README.md) 的 `local_env.py build-ui android`:缓存与构建实际保存在项目 `.local/work/`,短期 ASCII 目录联接只作调用入口并在结束后移除。`build_android.py --work-root` 保留显式 ASCII 联接的拼写,避免先 resolve 展开为中文路径。产品 APK 原有版本、签名和交付流程不变。
|
||||
|
||||
## APK 与签名
|
||||
|
||||
- 应用名“奇妙小屏幕”,applicationId 为 `org.qimiaoscreen.controller`,minSdk 26,首版版本 0.1.0。
|
||||
|
||||
@@ -17,7 +17,9 @@ def main():
|
||||
parser.add_argument('--gradle', type=Path, help='Optional verified Gradle executable; otherwise use Wrapper')
|
||||
parser.add_argument('tasks', nargs='*', default=[':sharedCore:jvmTest', ':androidApp:assembleDebug'])
|
||||
args = parser.parse_args()
|
||||
root = args.work_root.resolve()
|
||||
# Keep an explicitly supplied ASCII junction spelling. Resolving it first
|
||||
# would expose the Chinese workspace path to AGP despite the alias.
|
||||
root = Path(os.path.abspath(args.work_root))
|
||||
if not str(root).isascii():
|
||||
parser.error('work-root must use ASCII characters')
|
||||
if not (args.jdk / 'bin/java.exe').is_file() or not (args.sdk / 'platforms').is_dir():
|
||||
|
||||
Reference in New Issue
Block a user