add support for daily versions

version date will be updated once a new build is successful

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2024-06-04 08:37:32 +02:00
Родитель d08bc9edd3
Коммит 2113b7ee4f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 0E00D4D47D0C5AF7
2 изменённых файлов: 30 добавлений и 0 удалений

Просмотреть файл

@ -28,6 +28,11 @@ $betaReleaseDate = '2024-04-13 15:00';
$betaVersionInternal = '3.12.81';
$betaVersion = '3.13.0-rc1';
$linuxDailyReleaseDate = '20240604';
$windowsDailyReleaseDate = '20240604';
$macDailyReleaseDate = '20240604';
$dailyUrl = "https://download.nextcloud.com/desktop/daily/";
$stableVersionString = 'Nextcloud Client ' . $stableVersion;
$betaVersionString = 'Nextcloud Client ' . $betaVersion;
@ -120,6 +125,26 @@ return [
"length" => 64530955 //,
// "fileProviderLength" => 64530955 TODO: 3.13.0
],
],
'daily' => [
'linux' => [
'version' => $linuxDailyReleaseDate,
'versionstring' => $linuxDailyReleaseDate,
'downloadurl' => $dailyUrl . 'linux/linux-' . $linuxDailyReleaseDate . '.AppImage',
'web' => 'https://nextcloud.com/install',
],
'win32' => [
'version' => $windowsDailyReleaseDate,
'versionstring' => $windowsDailyReleaseDate,
'downloadurl' => $dailyUrl . 'windows/windows-' . $windowsDailyReleaseDate . '.msi',
'web' => 'https://nextcloud.com/install',
],
'macos' => [
'version' => $macDailyReleaseDate,
'versionstring' => $macDailyReleaseDate,
'downloadurl' => $dailyUrl . 'macos/macos-' . $macDailyReleaseDate . '.pkg',
'web' => 'https://nextcloud.com/install',
],
]
]
];

Просмотреть файл

@ -88,6 +88,11 @@ class Response {
$stable = $this->config[$this->oem]['stable'][$this->platform];
$beta = $this->config[$this->oem]['beta'][$this->platform];
$daily = $this->config[$this->oem]['daily'][$this->platform];
if ($this->channel == 'daily' && (version_compare($this->version, $daily['version']) == -1)) {
return $daily;
}
if ($this->channel == 'beta' && (version_compare($stable['version'], $beta['version']) == -1 || ($this->platform === 'macos' && $this->isSparkle === true))) {
return $beta;