Skip to content

Commit

Permalink
Merge pull request #162 from nextcloud/bugfix/update-macos-incompatib…
Browse files Browse the repository at this point in the history
…le-314

Skip 3.14.0 for macOS versions under 12
  • Loading branch information
mgallien authored Sep 23, 2024
2 parents bc23d84 + 2061e83 commit c919063
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,17 @@ private function getUpdateVersion() : array {

// if outdated platform, hand out latest stable-qt5, no daily/beta possible
if ($this->checkOldPlatform()) {
$stable = $this->config[$this->oem]['stable-qt5'][$this->platform];
$beta = null;
$daily = null;
$stable = $this->config[$this->oem]['stable-qt5'][$this->platform];
$beta = null;
$daily = null;
} else if (version_compare($this->osVersion, '12.0', '<') &&
version_compare($this->version, '3.14.0', '<') &&
version_compare($this->config[$this->oem]['stable'][$this->platform]['version'], '3.14.0', '==')) {
// Skip 3.14.0 for macOS < 12 when updating as we have an issue with the system requirement settings
// Serve the prior version instead in the meantime (3.13.4)
$stable = $this->config[$this->oem]['stable-qt5'][$this->platform];
$beta = $this->config[$this->oem]['beta'][$this->platform];
$daily = $this->config[$this->oem]['daily'][$this->platform];
} else {
$stable = $this->config[$this->oem]['stable'][$this->platform];
$beta = $this->config[$this->oem]['beta'][$this->platform];
Expand Down

0 comments on commit c919063

Please sign in to comment.