Skip to content

Commit 596a2ba

Browse files
mock update availability
1 parent 3a191e3 commit 596a2ba

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/org/cryptomator/macos/update/DmgUpdateMechanism.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ protected DownloadUpdateInfo checkForUpdate(String currentVersion, LatestVersion
3434
};
3535
var updateVersion = response.latestVersion().macVersion();
3636
var asset = response.assets().stream().filter(a -> a.name().endsWith(suffix)).findAny().orElse(null);
37+
38+
39+
// FIXME: remove this block! see https://github.com/cryptomator/cryptomator/issues/4058
40+
if (currentVersion.startsWith("1.18.0-beta") && asset != null) {
41+
return new DownloadUpdateInfo(this, updateVersion, asset);
42+
}
43+
// END FIXME
44+
45+
3746
if (UpdateMechanism.isUpdateAvailable(updateVersion, currentVersion) && asset != null) {
3847
return new DownloadUpdateInfo(this, updateVersion, asset);
3948
} else {

0 commit comments

Comments
 (0)