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 */ /** Fetch manifest JSON from Gitea — proxy to avoid CORS in WebView */
@android.webkit.JavascriptInterface @android.webkit.JavascriptInterface
fun fetchManifest(channel: String): String { 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") Log.i(TAG, "Bridge fetching $url")
return try { return try {
val conn = URL(url).openConnection() as HttpURLConnection val conn = URL(url).openConnection() as HttpURLConnection

BIN
ss.png Normal file

Binary file not shown.

1
t.xml Normal file

File diff suppressed because one or more lines are too long

1
t2.xml Normal file

File diff suppressed because one or more lines are too long

1
t3.xml Normal file

File diff suppressed because one or more lines are too long

1
t4.xml Normal file

File diff suppressed because one or more lines are too long

1
t5.xml Normal file

File diff suppressed because one or more lines are too long

1
t6.xml Normal file

File diff suppressed because one or more lines are too long

1
t7.xml Normal file

File diff suppressed because one or more lines are too long