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:
Родитель
d08bc9edd3
Коммит
2113b7ee4f
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче