diff options
author | Michael Schuster <michael@schuster.ms> | 2020-09-28 19:22:45 +0300 |
---|---|---|
committer | Michael Schuster <michael@schuster.ms> | 2020-09-28 19:29:19 +0300 |
commit | 2976a07efc9e3f716f654110b616f5d7cd385da1 (patch) | |
tree | 41525661b3125ef6ae93f6b7dcca7afb9909a386 /config | |
parent | ac4210ed1884a2f463fd2579659154df4fc5e22e (diff) |
Update 3.0.2 and reduce duplication in config.php
Signed-off-by: Michael Schuster <michael@schuster.ms>
Diffstat (limited to 'config')
-rw-r--r-- | config/config.php | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/config/config.php b/config/config.php index 59ec8cb..3dfe1fd 100644 --- a/config/config.php +++ b/config/config.php @@ -21,26 +21,33 @@ declare(strict_types=1); +$url = 'https://download.nextcloud.com/desktop/releases/'; + +$rel = '2020-09-28 18:00'; +$ver = '3.0.2'; + +$ver_str = 'Nextcloud Client ' . $ver; + /** * Associative array of OEM => OS => version */ return [ 'Nextcloud' => [ - 'release' => '2020-09-03 17:00', + 'release' => $rel, 'linux' => [ - 'version' => '3.0.1', - 'versionstring' => 'Nextcloud Client 3.0.1', - 'web' => 'https://download.nextcloud.com/desktop/releases/Linux/Nextcloud-3.0.1-x86_64.AppImage', + 'version' => $ver, + 'versionstring' => $ver_str, + 'web' => $url . 'Linux/Nextcloud-' . $ver . '-x86_64.AppImage', ], 'win32' => [ - 'version' => '3.0.1', - 'versionstring' => 'Nextcloud Client 3.0.1', - 'web' => 'https://download.nextcloud.com/desktop/releases/Windows/Nextcloud-3.0.1-setup.exe', + 'version' => $ver, + 'versionstring' => $ver_str, + 'web' => $url . 'Windows/Nextcloud-' . $ver . '-setup.exe', ], 'macos' => [ - 'version' => '3.0.1', - 'versionstring' => 'Nextcloud Client 3.0.1', - 'web' => 'https://download.nextcloud.com/desktop/releases/Mac/Installer/Nextcloud-3.0.1.pkg', + 'version' => $ver, + 'versionstring' => $ver_str, + 'web' => $url . 'Mac/Installer/Nextcloud-' . $ver . '.pkg', ], ], ]; |