fix and update

This commit is contained in:
lendry
2026-07-07 10:29:07 +03:00
parent bd6cd0d798
commit 12f46f572d
10 changed files with 115 additions and 31 deletions

View File

@@ -1769,9 +1769,8 @@ export async function checkAppUpdate(platform: AppReleasePlatform, versionCode:
}
export function buildAppReleaseDownloadUrl(platform: AppReleasePlatform, releaseId?: string) {
const base = getApiUrl().replace(/\/$/, '');
const slug = platform.toLowerCase();
return releaseId ? `${base}/releases/download/${slug}/${releaseId}` : `${base}/releases/download/${slug}`;
return releaseId ? `/downloads/${slug}/${releaseId}` : `/downloads/${slug}`;
}
export async function fetchAdminAppReleases(token: string, platform?: AppReleasePlatform) {