Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix daily config #155

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions config/config.php
Original file line number Diff line number Diff line change
@@ -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',
100 changes: 82 additions & 18 deletions tests/unit/ResponseTest.php
Original file line number Diff line number Diff line change
@@ -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,
'<?xml version="1.0"?>
<owncloudclient><version>20240604</version><versionstring>Nextcloud Daily 20240604</versionstring><downloadurl>https://download.nextcloud.com/desktop/daily/linux/linux-20240604.AppImage</downloadurl><web>https://nextcloud.com/install/#install-clients</web></owncloudclient>
<owncloudclient><version>3.13.50.20240604</version><versionstring>Nextcloud Daily 20240604</versionstring><downloadurl>https://download.nextcloud.com/desktop/daily/linux/linux-20240604.AppImage</downloadurl><web>https://nextcloud.com/install/#install-clients</web></owncloudclient>
'
],
// #24 Win7 -> QT5
// #24 daily too new
[
'nextcloud',
'linux',
'3.13.50.20240815',
'ubuntu',
'22.00',
'5.5.0',
'daily',
false,
false,
$config,
'<?xml version="1.0"?>
<owncloudclient/>
'
],
// #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,
'<?xml version="1.0"?>
<owncloudclient/>
'
],
// #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,
'<?xml version="1.0"?>
<owncloudclient><version>2.2.2</version><versionstring>Nextcloud Client 2.2.2</versionstring><downloadurl>https://download.nextcloud.com/desktop/stable/Nextcloud-2.2.2-x64.AppImage</downloadurl><web>https://nextcloud.com/install/#install-clients</web></owncloudclient>
'
],
// #27 daily, upgrade from old version schema
[
'nextcloud',
'linux',
'3.13.50.28075',
'ubuntu',
'24.04',
'5.5.0',
'daily',
false,
false,
$config,
'<?xml version="1.0"?>
<owncloudclient><version>3.13.50.20240604</version><versionstring>Nextcloud Daily 20240604</versionstring><downloadurl>https://download.nextcloud.com/desktop/daily/linux/linux-20240604.AppImage</downloadurl><web>https://nextcloud.com/install/#install-clients</web></owncloudclient>
'
],
// #28 Win7 -> QT5
[
'nextcloud',
'win32',
@@ -578,7 +642,7 @@ public function updateDataProvider(): array
<owncloudclient><version>2.0.0.0000</version><versionstring>Nextcloud Client 2.0.0 (build 0000)</versionstring><downloadurl>https://download.nextcloud.com/desktop/stable/Nextcloud-2.0.0.0000-setup.exe</downloadurl></owncloudclient>
'
],
// #25 Win10 -> QT5
// #29 Win10 -> QT5
[
'nextcloud',
'win32',
@@ -594,7 +658,7 @@ public function updateDataProvider(): array
<owncloudclient><version>2.0.0.0000</version><versionstring>Nextcloud Client 2.0.0 (build 0000)</versionstring><downloadurl>https://download.nextcloud.com/desktop/stable/Nextcloud-2.0.0.0000-setup.exe</downloadurl></owncloudclient>
'
],
// #26 Win10 -> QT6
// #30 Win10 -> QT6
[
'nextcloud',
'win32',
@@ -610,7 +674,7 @@ public function updateDataProvider(): array
<owncloudclient><version>2.2.2.6192</version><versionstring>Nextcloud Client 2.2.2 (build 6192)</versionstring><downloadurl>https://download.nextcloud.com/desktop/stable/ownCloud-2.2.2.6192-setup.exe</downloadurl></owncloudclient>
'
],
// #27 Win11 -> QT6
// #31 Win11 -> QT6
[
'nextcloud',
'win32',
@@ -626,7 +690,7 @@ public function updateDataProvider(): array
<owncloudclient><version>2.2.2.6192</version><versionstring>Nextcloud Client 2.2.2 (build 6192)</versionstring><downloadurl>https://download.nextcloud.com/desktop/stable/ownCloud-2.2.2.6192-setup.exe</downloadurl></owncloudclient>
'
],
// #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
<owncloudclient><version>2.0.0.0000</version><versionstring>Nextcloud Client 2.0.0 (build 0000)</versionstring><downloadurl>https://download.nextcloud.com/desktop/stable/Nextcloud-2.0.0.0000-setup.exe</downloadurl></owncloudclient>
'
],
// #29 MAC QT5
// #33 MAC QT5
[
'nextcloud',
'macos',
@@ -669,7 +733,7 @@ public function updateDataProvider(): array
</channel>
</rss>'
],
// #30 old Win11 -> QT5
// #34 old Win11 -> QT5
[
'nextcloud',
'win32',
@@ -685,7 +749,7 @@ public function updateDataProvider(): array
<owncloudclient><version>2.0.0.0000</version><versionstring>Nextcloud Client 2.0.0 (build 0000)</versionstring><downloadurl>https://download.nextcloud.com/desktop/stable/Nextcloud-2.0.0.0000-setup.exe</downloadurl></owncloudclient>
'
],
// #31 old Ubuntu
// #35 old Ubuntu
[
'nextcloud',
'linux',
@@ -701,7 +765,7 @@ public function updateDataProvider(): array
<owncloudclient><version>2.0.0</version><versionstring>Nextcloud Client 2.0.0</versionstring><downloadurl>https://download.nextcloud.com/desktop/stable/Nextcloud-2.0.0-x64.AppImage</downloadurl><web>https://nextcloud.com/install/#install-clients</web></owncloudclient>
'
],
// #32 new Ubuntu
// #36 new Ubuntu
[
'nextcloud',
'linux',
@@ -717,7 +781,7 @@ public function updateDataProvider(): array
<owncloudclient><version>2.2.2</version><versionstring>Nextcloud Client 2.2.2</versionstring><downloadurl>https://download.nextcloud.com/desktop/stable/Nextcloud-2.2.2-x64.AppImage</downloadurl><web>https://nextcloud.com/install/#install-clients</web></owncloudclient>
'
],
// #33 old RHEL
// #37 old RHEL
[
'nextcloud',
'linux',
@@ -733,7 +797,7 @@ public function updateDataProvider(): array
<owncloudclient><version>2.0.0</version><versionstring>Nextcloud Client 2.0.0</versionstring><downloadurl>https://download.nextcloud.com/desktop/stable/Nextcloud-2.0.0-x64.AppImage</downloadurl><web>https://nextcloud.com/install/#install-clients</web></owncloudclient>
'
],
// #34 new RHEL
// #38 new RHEL
[
'nextcloud',
'linux',
@@ -749,7 +813,7 @@ public function updateDataProvider(): array
<owncloudclient><version>2.2.2</version><versionstring>Nextcloud Client 2.2.2</versionstring><downloadurl>https://download.nextcloud.com/desktop/stable/Nextcloud-2.2.2-x64.AppImage</downloadurl><web>https://nextcloud.com/install/#install-clients</web></owncloudclient>
'
],
// #35 old openSuse
// #39 old openSuse
[
'nextcloud',
'linux',
@@ -765,7 +829,7 @@ public function updateDataProvider(): array
<owncloudclient><version>2.0.0</version><versionstring>Nextcloud Client 2.0.0</versionstring><downloadurl>https://download.nextcloud.com/desktop/stable/Nextcloud-2.0.0-x64.AppImage</downloadurl><web>https://nextcloud.com/install/#install-clients</web></owncloudclient>
'
],
// #36 new openSuse
// #40 new openSuse
[
'nextcloud',
'linux',