diff --git a/config/config.php b/config/config.php index ed0eea2..38756f5 100644 --- a/config/config.php +++ b/config/config.php @@ -31,8 +31,14 @@ $betaVersion = '3.14.0-rc1'; $dailyReleaseDateLinux = '20240829'; +$dailyVersionLinux = '3.13.50.20240815'; + $dailyReleaseDateWindows = '20240828'; +$dailyVersionWindows = '3.13.50.20240815'; + $dailyReleaseDateMacos = '20240604'; +$dailyVersionMacos = '3.13.50.20240815'; + $dailyUrl = "https://download.nextcloud.com/desktop/daily/"; $stableVersionString = 'Nextcloud Client ' . $stableVersion; @@ -115,7 +121,7 @@ "fileProviderSignature" => "Y5H86yeRuwFtNFJOqcGe1xzbFNEmxQgjft5oOoezQ31fo8PHgZ7BkHrunY1s4yYKNYkTUqpgvtYws2W9WBujCw==", "fileProviderLength" => 97379078, ], - ], + ], 'stable' => [ 'release' => $stableReleaseDate, 'linux' => [ @@ -175,19 +181,19 @@ ], 'daily' => [ 'linux' => [ - 'version' => $dailyReleaseDateLinux, + 'version' => $dailyVersionLinux, 'versionstring' => "Nextcloud Daily " . $dailyReleaseDateLinux, 'downloadurl' => $dailyUrl . 'linux/linux-' . $dailyReleaseDateLinux. '.AppImage', 'web' => 'https://nextcloud.com/install', ], 'win32' => [ - 'version' => $dailyReleaseDateWindows, + 'version' => $daildVersionWindows, 'versionstring' => "Nextcloud Daily " . $dailyReleaseDateWindows, 'downloadurl' => $dailyUrl . 'windows/windows-' . $dailyReleaseDateWindows . '.msi', 'web' => 'https://nextcloud.com/install', ], 'macos' => [ - 'version' => $dailyReleaseDateMacos, + 'version' => $dailyVersionMacos, 'versionstring' => "Nextcloud Daily " . $dailyReleaseDateMacos, 'downloadurl' => $dailyUrl . 'macos/macos-' . $dailyReleaseDateMacos . '.pkg', 'web' => 'https://nextcloud.com/install', diff --git a/tests/unit/ResponseTest.php b/tests/unit/ResponseTest.php index 1f532d2..8bc51f7 100644 --- a/tests/unit/ResponseTest.php +++ b/tests/unit/ResponseTest.php @@ -98,19 +98,19 @@ public function updateDataProvider(): array ], 'daily' => [ 'linux' => [ - 'version' => '20240604', + 'version' => '3.13.50.20240604', 'versionstring' => 'Nextcloud Daily 20240604', 'downloadurl' => 'https://download.nextcloud.com/desktop/daily/linux/linux-20240604.AppImage', 'web' => 'https://nextcloud.com/install/#install-clients', ], 'win32' => [ - 'version' => '20240604', + 'version' => '3.13.50.20240604', 'versionstring' => 'Nextcloud Daily 20240604', 'downloadurl' => 'https://download.nextcloud.com/desktop/daily/windows/windows-20240604.msi', 'web' => 'https://nextcloud.com/install/#install-clients', ], 'macos' => [ - 'version' => '20240604', + 'version' => '3.13.50.20240604', 'versionstring' => 'Nextcloud Daily 20240604', 'downloadurl' => 'https://download.nextcloud.com/desktop/daily/macos/macos-20240604.pkg', 'web' => 'https://nextcloud.com/install/#install-clients', @@ -550,7 +550,7 @@ public function updateDataProvider(): array [ 'nextcloud', 'linux', - '20240601', + '3.13.50.20240603', '', 'debian', '20', @@ -559,10 +559,74 @@ public function updateDataProvider(): array false, $config, ' -20240604Nextcloud Daily 20240604https://download.nextcloud.com/desktop/daily/linux/linux-20240604.AppImagehttps://nextcloud.com/install/#install-clients +3.13.50.20240604Nextcloud Daily 20240604https://download.nextcloud.com/desktop/daily/linux/linux-20240604.AppImagehttps://nextcloud.com/install/#install-clients ' ], - // #24 Win7 -> QT5 + // #24 daily too new + [ + 'nextcloud', + 'linux', + '3.13.50.20240815', + 'ubuntu', + '22.00', + '5.5.0', + 'daily', + false, + false, + $config, + ' + +' + ], + // #25 daily downgrade to stable -> wait for new version + [ + 'nextcloud', + 'linux', + '3.13.50.20240815', + 'ubuntu', + '22.00', + '5.5.0', + 'stable', + false, + false, + $config, + ' + +' + ], + // #26 daily downgrade to stable -> wait for new version + [ + 'nextcloud', + 'linux', + '2.1.50.20240815', + 'ubuntu', + '24.04', + '5.5.0', + 'stable', + false, + false, + $config, + ' +2.2.2Nextcloud Client 2.2.2https://download.nextcloud.com/desktop/stable/Nextcloud-2.2.2-x64.AppImagehttps://nextcloud.com/install/#install-clients +' + ], + // #27 daily, upgrade from old version schema + [ + 'nextcloud', + 'linux', + '3.13.50.28075', + 'ubuntu', + '24.04', + '5.5.0', + 'daily', + false, + false, + $config, + ' +3.13.50.20240604Nextcloud Daily 20240604https://download.nextcloud.com/desktop/daily/linux/linux-20240604.AppImagehttps://nextcloud.com/install/#install-clients +' + ], + // #28 Win7 -> QT5 [ 'nextcloud', 'win32', @@ -578,7 +642,7 @@ public function updateDataProvider(): array 2.0.0.0000Nextcloud Client 2.0.0 (build 0000)https://download.nextcloud.com/desktop/stable/Nextcloud-2.0.0.0000-setup.exe ' ], - // #25 Win10 -> QT5 + // #29 Win10 -> QT5 [ 'nextcloud', 'win32', @@ -594,7 +658,7 @@ public function updateDataProvider(): array 2.0.0.0000Nextcloud Client 2.0.0 (build 0000)https://download.nextcloud.com/desktop/stable/Nextcloud-2.0.0.0000-setup.exe ' ], - // #26 Win10 -> QT6 + // #30 Win10 -> QT6 [ 'nextcloud', 'win32', @@ -610,7 +674,7 @@ public function updateDataProvider(): array 2.2.2.6192Nextcloud Client 2.2.2 (build 6192)https://download.nextcloud.com/desktop/stable/ownCloud-2.2.2.6192-setup.exe ' ], - // #27 Win11 -> QT6 + // #31 Win11 -> QT6 [ 'nextcloud', 'win32', @@ -626,7 +690,7 @@ public function updateDataProvider(): array 2.2.2.6192Nextcloud Client 2.2.2 (build 6192)https://download.nextcloud.com/desktop/stable/ownCloud-2.2.2.6192-setup.exe ' ], - // #28 stable-qt5 -> old beta -> latest qt5 stable + // #32 stable-qt5 -> old beta -> latest qt5 stable [ 'nextcloud', 'win32', @@ -642,7 +706,7 @@ public function updateDataProvider(): array 2.0.0.0000Nextcloud Client 2.0.0 (build 0000)https://download.nextcloud.com/desktop/stable/Nextcloud-2.0.0.0000-setup.exe ' ], - // #29 MAC QT5 + // #33 MAC QT5 [ 'nextcloud', 'macos', @@ -669,7 +733,7 @@ public function updateDataProvider(): array ' ], - // #30 old Win11 -> QT5 + // #34 old Win11 -> QT5 [ 'nextcloud', 'win32', @@ -685,7 +749,7 @@ public function updateDataProvider(): array 2.0.0.0000Nextcloud Client 2.0.0 (build 0000)https://download.nextcloud.com/desktop/stable/Nextcloud-2.0.0.0000-setup.exe ' ], - // #31 old Ubuntu + // #35 old Ubuntu [ 'nextcloud', 'linux', @@ -701,7 +765,7 @@ public function updateDataProvider(): array 2.0.0Nextcloud Client 2.0.0https://download.nextcloud.com/desktop/stable/Nextcloud-2.0.0-x64.AppImagehttps://nextcloud.com/install/#install-clients ' ], - // #32 new Ubuntu + // #36 new Ubuntu [ 'nextcloud', 'linux', @@ -717,7 +781,7 @@ public function updateDataProvider(): array 2.2.2Nextcloud Client 2.2.2https://download.nextcloud.com/desktop/stable/Nextcloud-2.2.2-x64.AppImagehttps://nextcloud.com/install/#install-clients ' ], - // #33 old RHEL + // #37 old RHEL [ 'nextcloud', 'linux', @@ -733,7 +797,7 @@ public function updateDataProvider(): array 2.0.0Nextcloud Client 2.0.0https://download.nextcloud.com/desktop/stable/Nextcloud-2.0.0-x64.AppImagehttps://nextcloud.com/install/#install-clients ' ], - // #34 new RHEL + // #38 new RHEL [ 'nextcloud', 'linux', @@ -749,7 +813,7 @@ public function updateDataProvider(): array 2.2.2Nextcloud Client 2.2.2https://download.nextcloud.com/desktop/stable/Nextcloud-2.2.2-x64.AppImagehttps://nextcloud.com/install/#install-clients ' ], - // #35 old openSuse + // #39 old openSuse [ 'nextcloud', 'linux', @@ -765,7 +829,7 @@ public function updateDataProvider(): array 2.0.0Nextcloud Client 2.0.0https://download.nextcloud.com/desktop/stable/Nextcloud-2.0.0-x64.AppImagehttps://nextcloud.com/install/#install-clients ' ], - // #36 new openSuse + // #40 new openSuse [ 'nextcloud', 'linux',