aboutsummaryrefslogtreecommitdiff
path: root/src/android/app
diff options
context:
space:
mode:
authorcrueter <crueter@eden-emu.dev>2026-04-24 18:40:49 +0200
committercrueter <crueter@eden-emu.dev>2026-04-24 18:40:49 +0200
commit26ce96297cd3ca014bc526cd4ef03c731ef7bbd9 (patch)
tree31876e12417bb5633c1ad3171e6fbaa8735d7406 /src/android/app
parentb3cc8723c14a48bd75f124bed67ac5a2b44e013a (diff)
[frontend] Change update checker to use new endpoints (#3879)
Related: [RFC3870](https://git.eden-emu.dev/eden-emu/eden/issues/3870) Nightly and stable releases are now served through `nightly.eden-emu.dev` and `stable.eden-emu.dev`, respectively. These are stored using Backblaze, and served and cached through the Cloudflare CDN. Ideally this will reduce costs, though I'll have to wait for my first invoice to be certain. These will serve as the new download locations going forward. Since we have full control over this API, we can make any adjustments we want as needed. For now, all it does is provide `tag_name`, `name`, and `body`, the latter of which will be used for the upcoming updater PR. Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3879 Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Diffstat (limited to 'src/android/app')
-rw-r--r--src/android/app/src/main/jni/native.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/android/app/src/main/jni/native.cpp b/src/android/app/src/main/jni/native.cpp
index 210689ce55..93a1337d80 100644
--- a/src/android/app/src/main/jni/native.cpp
+++ b/src/android/app/src/main/jni/native.cpp
@@ -1726,9 +1726,8 @@ JNIEXPORT jstring JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_getUpdateUrl(
jobject obj,
jstring version) {
const char* version_str = env->GetStringUTFChars(version, nullptr);
- const std::string url = fmt::format("{}/{}/releases/tag/{}",
- std::string{Common::g_build_auto_update_website},
- std::string{Common::g_build_auto_update_repo},
+ const std::string url = fmt::format("{}/{}",
+ std::string{Common::g_build_auto_update_api},
version_str);
env->ReleaseStringUTFChars(version, version_str);
return env->NewStringUTF(url.c_str());
@@ -1760,11 +1759,10 @@ JNIEXPORT jstring JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_getUpdateApkUrl(
}
const std::string apk_filename = fmt::format("Eden-Android-{}-{}.apk", artifact_str, variant);
- const std::string url = fmt::format("{}/{}/releases/download/{}/{}",
- std::string{Common::g_build_auto_update_website},
- std::string{Common::g_build_auto_update_repo},
- version_str,
- apk_filename);
+
+ const std::string url = fmt::format("{}/{}/{}",
+ std::string{Common::g_build_auto_update_api},
+ version_str, apk_filename);
env->ReleaseStringUTFChars(tag, version_str);
env->ReleaseStringUTFChars(artifact, artifact_str);