fix: Download latest integrations non-pre-release

This commit is contained in:
oSumAtrIX 2024-04-28 23:40:28 +02:00
parent 7e0f18e3b7
commit 4a72267d41
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
3 changed files with 10 additions and 66 deletions

View file

@ -422,7 +422,7 @@ class ManagerAPI {
final String repoName = !isUsingAlternativeSources() ? defaultPatchesRepo : getPatchesRepo();
final String currentVersion = await getCurrentPatchesVersion();
final String url = getPatchesDownloadURL();
return await _githubAPI.getPatchesReleaseFile(
return await _githubAPI.getReleaseFile(
'.jar',
repoName,
currentVersion,
@ -441,7 +441,7 @@ class ManagerAPI {
final String repoName = !isUsingAlternativeSources() ? defaultIntegrationsRepo : getIntegrationsRepo();
final String currentVersion = await getCurrentIntegrationsVersion();
final String url = getIntegrationsDownloadURL();
return await _githubAPI.getPatchesReleaseFile(
return await _githubAPI.getReleaseFile(
'.apk',
repoName,
currentVersion,
@ -470,7 +470,7 @@ class ManagerAPI {
);
} else {
final release =
await _githubAPI.getLatestPatchesRelease(getPatchesRepo());
await _githubAPI.getLatestRelease(getPatchesRepo());
if (release != null) {
final DateTime timestamp =
DateTime.parse(release['created_at'] as String);
@ -519,7 +519,7 @@ class ManagerAPI {
);
} else {
final release =
await _githubAPI.getLatestPatchesRelease(getPatchesRepo());
await _githubAPI.getLatestRelease(getPatchesRepo());
if (release != null) {
return release['tag_name'];
} else {