Skip to content

Commit f03c9f1

Browse files
mock update availablility
1 parent 187b766 commit f03c9f1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/org/cryptomator/linux/update/FlatpakUpdater.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ public FlatpakUpdateInfo checkForUpdate(String currentVersion, HttpClient httpCl
7070
.max(Comparator.comparing(AppstreamReleases::timestamp)) // we're interested in the newest stable release
7171
.map(AppstreamReleases::version)
7272
.orElse("0.0.0"); // fallback should always be smaller than current version
73+
74+
75+
// FIXME: remove this block! see https://github.com/cryptomator/cryptomator/issues/4058
76+
if (currentVersion.startsWith("1.18.0-beta")) {
77+
return new FlatpakUpdateInfo(updateVersion, this);
78+
}
79+
// END FIXME
80+
81+
7382
if (UpdateMechanism.isUpdateAvailable(updateVersion, currentVersion)) {
7483
return new FlatpakUpdateInfo(updateVersion, this);
7584
} else {

0 commit comments

Comments
 (0)