- package: tis-nextcloud
- name: Nextcloud
- version: 3.5.2.20220701-1
- categories: Storage
- maintainer: WAPT Team,Tranquil IT,développeur du paquet,Bertrand Lemoigne,Gaëtan SEGAT
- editor: Nextcloud GmbH
- licence: AGPLv3
- locale: all
- target_os: windows
- impacted_process: nextcloud
- architecture: x86
- signature_date:
- size: 85.52 Mo
- installed_size: 214.91 Mo
- homepage : https://nextcloud.com
package : tis-nextcloud
version : 3.5.2.20220701-1
architecture : x86
section : base
priority : optional
name : Nextcloud
categories : Storage
maintainer : WAPT Team,Tranquil IT,développeur du paquet,Bertrand Lemoigne,Gaëtan SEGAT
description : Nextcloud is a suite of client-server software for creating and using file hosting services
depends :
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.0
sources : https://github.com/nextcloud/desktop/releases/
installed_size : 214913024
impacted_process : nextcloud
description_fr : Nextcloud est une suite de logiciels client-serveur permettant de créer et d'utiliser des services d'hébergement de fichiers
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor : Nextcloud GmbH
keywords : cloud
licence : AGPLv3
homepage : https://nextcloud.com
package_uuid : eecaeaa2-83cc-48e8-b9b2-f206e9a96853
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version : 10.0
max_os_version :
icon_sha256sum : 1151ba48674e21f0e26c7bebad851fcc669cd869201ae559fa6e253d64b9401d
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : BElbwQ2/KtcSY483ty819WOnebjL28NcBixF9KNboOE+nKEPrXMTGMwe5wmNjaxWiiye9WNGDN0HnJQ1VhT4i4M5UcV6tQsKP6+l3sQiiBQkmvIRHCZSbXlAJKyhYKvFFPAkVOGkmxdZG+y5D6HaNaiUQDIyTE071h7AEthrqYQr2oHv9KGkRqKQA/zT18KC9YAdefowPndZxJJ9c655rGN4miINTVocBySq7boMbaRDAeCyYfkTflWy8aLnMVD4t8PBYfiXW0l+JZug6n8ADjD7dd/A05c/YvbTW1uzwT1esCQs519vQNSKY3uzEFvf5kqLiEjOITjroQXWzylaZA==
signature_date : 2022-07-10T11:00:35.925635
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
import json
# Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = 'x86.msi'
def install():
# Declaring local variables
package_version = control.get_software_version()
bin_name = glob.glob('*%s*.msi' % bin_contains)[0]
# Installing the package
print("Installing: %s" % bin_name)
install_msi_if_needed(bin_name,
min_version=package_version,
)
registry_setstring(HKEY_LOCAL_MACHINE, r"SOFTWARE\Nextcloud GmbH\Nextcloud", 'skipUpdateCheck', 1, type=REG_DWORD)
def update_package():
# Declaring local variables
result = False
proxies = get_proxies()
bin_name_sub = bin_contains + '%s.msi'
if not proxies:
proxies = get_proxies_from_wapt_console()
app_name = control.name
git_repo = 'nextcloud/desktop'
url_api = 'https://api.github.com/repos/%s/releases/latest' % git_repo
# Getting latest version information from official sources
print("API used is: %s" % url_api)
json_load = json.loads(wgets(url_api, proxies=proxies))
for download in json_load['assets']:
if bin_contains in download['name']:
url_dl = download['browser_download_url']
version = json_load['tag_name'].replace('v', '')
latest_bin = download['name']
break
print("Latest %s version is: %s" % (app_name, version))
print("Download URL is: %s" % url_dl)
# Downloading latest binaries
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(url_dl, latest_bin, proxies=proxies)
# Checking version from file
version_from_file = get_version_from_binary(latest_bin)
if version != version_from_file and version_from_file != '':
print("Changing version to the version number of the binary")
os.rename(latest_bin,bin_name_sub % version_from_file)
version = version_from_file
# Changing version of the package
if Version(version) > Version(control.get_software_version()):
print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
result = True
control.version = '%s-%s' % (Version(version), control.version.split('-', 1)[-1])
#control.set_software_version(Version(version))
control.save_control_to_wapt()
# Deleting outdated binaries
remove_outdated_binaries(version)
# Validating update-package-sources
return result
1357faac21d48a30ec620f83b2a558e913dafb5346e2773bbb9044ee435be9f0 : setup.py
953a721a1807a2a24de6468e01bf9cd992cabab3ebaf3f6fa2d29675f9068915 : x86.msi3.5.2.20220701.msi
1151ba48674e21f0e26c7bebad851fcc669cd869201ae559fa6e253d64b9401d : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
ce4c82e5e7a2b2f5a5f20eb3e45a2a649c43bb9da167dd1a45868b5d6f2e7fdd : luti.json
db674b74839eab582c8e29aa4947d1ba173e6c2ea32ec87007fc216797a7d6a6 : WAPT/control