diff options
-rw-r--r-- | src/main/java/moe/nea/libautoupdate/GithubReleaseUpdateSource.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/moe/nea/libautoupdate/GithubReleaseUpdateSource.java b/src/main/java/moe/nea/libautoupdate/GithubReleaseUpdateSource.java index 6742261..38bfd86 100644 --- a/src/main/java/moe/nea/libautoupdate/GithubReleaseUpdateSource.java +++ b/src/main/java/moe/nea/libautoupdate/GithubReleaseUpdateSource.java @@ -63,7 +63,7 @@ public class GithubReleaseUpdateSource extends JsonUpdateSource { protected UpdateData findAsset(GithubRelease release) { if (release.getAssets() == null) return null; return release.getAssets().stream() - .filter(it -> Objects.equals(it.getContentType(), "application/x-java-archive") && it.getBrowserDownloadUrl() != null) + .filter(it -> (Objects.equals(it.getContentType(), "application/x-java-archive") || (it.getName() != null && it.getName().endsWith(".jar"))) && it.getBrowserDownloadUrl() != null) .map(it -> new UpdateData( release.getName() == null ? release.getTagName() : release.getName(), new JsonPrimitive(release.getTagName()), |