reset: versionCode→5, H5热更新起点v5→v6

- versionCode 6→5 (衔接Git Tag v4)
- embedded HTML→v5, 下载目标→v6
- ota/version.txt→v6
- Gitea tags v5/v6已清理
This commit is contained in:
LukeMackin
2026-07-21 18:29:03 +08:00
parent 42b3592ed9
commit ead2045ce5
3 changed files with 4 additions and 4 deletions

View File

@@ -1 +1 @@
0.1.0-dav-android-8
0.1.0-dav-android-6

View File

@@ -9,7 +9,7 @@ android {
applicationId "dev.yuzu.gca"
minSdk 24
targetSdk 35
versionCode 6
versionCode 5
versionName "0.1.0"
}

View File

@@ -11,7 +11,7 @@ h1{font-size:18px;color:#38bdf8}
.badge{display:inline-block;background:#f59e0b;color:#000;padding:2px 8px;border-radius:4px;font-size:11px;margin-left:8px}
</style></head><body>
<h1>Yuzu GCA</h1>
<div class="info">version <span id="ver">v0.1.0-dav-android-6</span></div>
<div class="info">version <span id="ver">v0.1.0-dav-android-5</span></div>
<button class="btn btn-check" onclick="checkUpdate()">检查更新</button>
<button class="btn btn-download" onclick="applyUpdate()" id="btnApply" disabled>下载更新</button>
<div class="log" id="log"></div>
@@ -27,7 +27,7 @@ function checkUpdate(){
.then(r=>{if(!r.ok)throw Error('HTTP '+r.status);return r.text()})
.then(t=>{t=t.trim();log('remote: '+t);
var local=document.getElementById('ver').innerText;
if(t!==local&&t!=='v'+local&&'v'+t!==local){dlVer=t;dlUrl=BASE+'/h5/index-v8.html';
if(t!==local&&t!=='v'+local&&'v'+t!==local){dlVer=t;dlUrl=BASE+'/h5/index-v6.html';
log('*** NEW VERSION: '+dlVer+' ***');document.getElementById('btnApply').disabled=false}
else log('up to date')})
.catch(e=>log('ERR: '+e.message))