refactor: ota目录优化 — h5-manifest-*.json移至根+更新Bridge URL

- ota/h5/manifest-*.json → ota/h5-manifest-*.json
- MainActivity.kt: fetchManifest URL更新
- APK manifest + h5 manifest命名冲突消除
This commit is contained in:
LukeMackin
2026-07-21 23:13:57 +08:00
parent f4b0feb9d1
commit a4fa268b9f
13 changed files with 8 additions and 1 deletions

View File

@@ -65,7 +65,7 @@ class MainActivity : AppCompatActivity() {
/** Fetch manifest JSON from Gitea — proxy to avoid CORS in WebView */
@android.webkit.JavascriptInterface
fun fetchManifest(channel: String): String {
val url = "https://git.childish-ghost.com/LukeMackin/Yuzu-GCA/raw/branch/main/ota/h5/manifest-$channel.json"
val url = "https://git.childish-ghost.com/LukeMackin/Yuzu-GCA/raw/branch/main/ota/h5-manifest-$channel.json"
Log.i(TAG, "Bridge fetching $url")
return try {
val conn = URL(url).openConnection() as HttpURLConnection