Package the Android build as an installable APK

The arm64 job stopped at the three shared libraries, so the only way to
use them was to build a player around them. Let the libraries go into
mpv-android's jniLibs and let Gradle assemble and sign the app instead.

- copy libmpv.so, libjoc_core.so and libc++_shared.so into
  app/src/main/jniLibs/arm64-v8a
- locate the SDK under buildscripts/sdk, accept its licences, and link
  the unpacked NDK where AGP looks for it
- run assembleRelease with a throwaway injected signing key, so the APK
  installs without repository secrets
- verify the signature when apksigner is available and upload the APK as
  mpv-joc-android-arm64-v8a-apk, keeping the bare libraries as before
- cache the Gradle home between runs
- document the artifact and how to pass the ad_joc options

Checked locally: the workflow parses and every shell block passes
bash -n; the Gradle build itself needs a CI run.
This commit is contained in:
TheM14 committed 2026-10-31 02:47:40 +08:00
1 parent ecf14d8c32
commit c45808135d
3 files changed
+118 -3

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ mpv-joc/
patches/ 同一改动的 diff(精确复现用)
tools/ 锚点应用、构建、DLL 收集脚本
docs/ Android(libmpv.so)可行性调研
.github/workflows/ 补丁的 CI:构建产物 + 每日跟最新 mpv 检查
.github/workflows/ 补丁的 CI:构建产物(Windows / Android APK)+ 每日跟最新 mpv 检查
```
## 环境要求