1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
<?php
/**
* @copyright Copyright (c) 2016 Lukas Reschke <lukas@statuscode.ch>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
declare(strict_types=1);
$stableReleaseDate = '2022-05-17 18:00';
$stableVersion = '3.5.1';
$betaReleaseDate = '2022-05-02 10:00';
$betaVersion = '3.5.0-rc4';
$stableVersionString = 'Nextcloud Client ' . $stableVersion;
$betaVersionString = 'Nextcloud Client ' . $betaVersion;
if (version_compare($version, '3.0.3') < 0) {
$url = 'https://download.nextcloud.com/desktop/releases/';
$stable_linux_url = $url . 'Linux/';
$stable_windows_url = $url . 'Windows/';
$stable_mac_url = $url . 'Mac/Installer/';
} else {
$stableUrl = 'https://github.com/nextcloud-releases/desktop/releases/download/v' . $stableVersion . '/';
$stable_linux_url = $stableUrl;
$stable_windows_url = $stableUrl;
$stable_mac_url = $stableUrl;
$betaUrl = 'https://github.com/nextcloud-releases/desktop/releases/download/v' . $betaVersion . '/';
$beta_linux_url = $betaUrl;
$beta_windows_url = $betaUrl;
$beta_mac_url = $betaUrl;
}
if (version_compare($version, '3.1.0') < 0) {
$windows_suffix = '-setup.exe';
$stableVersion = '3.1.3';
} else {
if ($buildArch === 'i386') {
$windows_suffix = '-x86.msi';
} else {
$windows_suffix = '-x64.msi';
}
}
/**
* Associative array of OEM => OS => version
*/
return [
'Nextcloud' => [
'stable' => [
'release' => $stableReleaseDate,
'linux' => [
'version' => $stableVersion,
'versionstring' => $stableVersionString,
'downloadurl' => $stable_linux_url . 'Nextcloud-' . $stableVersion . '-x64.AppImage',
'web' => 'https://nextcloud.com/install',
],
'win32' => [
'version' => $stableVersion,
'versionstring' => $stableVersionString,
'downloadurl' => $stable_windows_url . 'Nextcloud-' . $stableVersion . $windows_suffix,
'web' => 'https://nextcloud.com/install',
],
'macos' => [
'version' => $stableVersion,
'versionstring' => $stableVersionString,
'downloadurl' => $stable_mac_url . 'Nextcloud-' . $stableVersion . '.pkg',
'web' => 'https://nextcloud.com/install',
"sparkleDownloadUrl" => $stable_mac_url . 'Nextcloud-' . $stableVersion . '.pkg.tbz',
"signature" => "VjVCAmZ2PtX3P0bo2R7GWJf2eKcxwQvcswA1oly1SpcOeHu8nt9Rfo20Hbl+JIz4vIo1aIZHWKwiXU2CtrjrBw==",
"length" => 62917216
],
],
'beta' => [
'release' => $betaReleaseDate,
'linux' => [
'version' => $betaVersion,
'versionstring' => $betaVersionString,
'downloadurl' => $beta_linux_url . 'Nextcloud-' . $betaVersion . '-x64.AppImage',
'web' => 'https://nextcloud.com/install',
],
'win32' => [
'version' => $betaVersion,
'versionstring' => $betaVersionString,
'downloadurl' => $beta_windows_url . 'Nextcloud-' . $betaVersion . $windows_suffix,
'web' => 'https://nextcloud.com/install',
],
'macos' => [
'version' => $betaVersion,
'versionstring' => $betaVersionString,
'downloadurl' => $beta_mac_url . 'Nextcloud-' . $betaVersion . '.pkg',
'web' => 'https://nextcloud.com/install',
],
]
]
];
|