Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/client_updater_server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens@nextcloud.com>2020-12-22 16:39:35 +0300
committerKevin Ottens <kevin.ottens@nextcloud.com>2020-12-22 16:39:35 +0300
commit9cbe950682884ad21ad57dbb0524b3df8315142e (patch)
treed0369d851cfce174455f637862f61debb65ca90b
parent12f907ba9dc4e946b6c9ce17c9c72e193218b80f (diff)
Switch to delivering MSI installers for 3.1.0 and above
This makes use of the buildArch information to decide if we deliver the x86 or the x64 MSI. Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
-rw-r--r--config/config.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/config/config.php b/config/config.php
index 9a2f3fc..c37d28a 100644
--- a/config/config.php
+++ b/config/config.php
@@ -47,6 +47,17 @@ if (version_compare($version, '3.0.3') < 0) {
$mac_url = $url;
}
+if (version_compare($version, '3.1.0') < 0) {
+ $windows_suffix = '-setup.exe';
+} else {
+ if ($buildArch === 'i386') {
+ $windows_suffix = '-x86.msi';
+ } else {
+ $windows_suffix = '-x64.msi';
+ }
+}
+
+
/**
* Associative array of OEM => OS => version
*/
@@ -62,7 +73,7 @@ return [
'win32' => [
'version' => $ver,
'versionstring' => $ver_str,
- 'downloadurl' => $windows_url . 'Nextcloud-' . $ver . '-setup.exe',
+ 'downloadurl' => $windows_url . 'Nextcloud-' . $ver . $windows_suffix,
'web' => 'https://nextcloud.com/install/?pk_campaign=clientupdate#install-clients',
],
'macos' => [