From 97a4712725a50d9af647647c142730570e3742a9 Mon Sep 17 00:00:00 2001 From: Tony Giorgio Date: Mon, 13 Oct 2025 11:28:35 -0500 Subject: [PATCH] Make Android APK downloads use dynamic GitHub release URLs Replace hardcoded APK download link with dynamic URL fetching similar to desktop downloads. This ensures the download page always points to the latest APK release. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> --- frontend/src/routes/downloads.tsx | 6 ++++-- frontend/src/utils/githubRelease.ts | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/frontend/src/routes/downloads.tsx b/frontend/src/routes/downloads.tsx index 49cb48bc..fd4a22d0 100644 --- a/frontend/src/routes/downloads.tsx +++ b/frontend/src/routes/downloads.tsx @@ -14,6 +14,7 @@ interface DownloadUrls { linuxAppImage: string; linuxDeb: string; linuxRpm: string; + androidApk: string; } // Fallback to package.json version if GitHub API fails @@ -24,7 +25,8 @@ const FALLBACK_URLS: DownloadUrls = { macOS: `${FALLBACK_BASE_URL}/Maple_${FALLBACK_VERSION}_universal.dmg`, linuxAppImage: `${FALLBACK_BASE_URL}/Maple_${FALLBACK_VERSION}_amd64.AppImage`, linuxDeb: `${FALLBACK_BASE_URL}/Maple_${FALLBACK_VERSION}_amd64.deb`, - linuxRpm: `${FALLBACK_BASE_URL}/Maple-${FALLBACK_VERSION}-1.x86_64.rpm` + linuxRpm: `${FALLBACK_BASE_URL}/Maple-${FALLBACK_VERSION}-1.x86_64.rpm`, + androidApk: `${FALLBACK_BASE_URL}/app-universal-release.apk` }; function DownloadPage() { @@ -256,7 +258,7 @@ function DownloadPage() { Or download the APK directly: