fix: gitignore路径修复 + 版本比较改用PackageInfo动态获取
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -39,7 +39,7 @@ src-tauri/target/
|
|||||||
|
|
||||||
# Android
|
# Android
|
||||||
android/app/build/
|
android/app/build/
|
||||||
android/.gradle/
|
**/android/.gradle/
|
||||||
android/build/
|
android/build/
|
||||||
*.hprof
|
*.hprof
|
||||||
*.jks
|
*.jks
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -165,7 +165,8 @@ class MainActivity : AppCompatActivity() {
|
|||||||
appendLog(" SHA256: ${manifestSha256.take(16)}...")
|
appendLog(" SHA256: ${manifestSha256.take(16)}...")
|
||||||
|
|
||||||
// 版本比较:一致则跳过
|
// 版本比较:一致则跳过
|
||||||
if (manifestTag == "v0.1.0-dav-android-8") {
|
val localTag = "v0.1.0-dav-android-${packageManager.getPackageInfo(packageName, 0).versionCode}"
|
||||||
|
if (manifestTag == localTag) {
|
||||||
appendLog(" ✅ 已是最新版本,无需更新")
|
appendLog(" ✅ 已是最新版本,无需更新")
|
||||||
appendLog("=== $channel 渠道测试完成 ===")
|
appendLog("=== $channel 渠道测试完成 ===")
|
||||||
return@withContext
|
return@withContext
|
||||||
|
|||||||
Reference in New Issue
Block a user