tis-nextcloud

3.3.3-2
Nextcloud is a suite of client-server software for creating and using file hosting services
26981 downloads
Download
tis-nextcloud icon

  Description 

  • package : tis-nextcloud
  • version : 3.3.3-2
  • architecture : all
  • 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
  • locale : all
  • target_os : darwin
  • min_wapt_version : 2.0
  • sources :
  • installed_size : 381493248
  • impacted_process :
  • 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 :
  • editor : Nextcloud GmbH
  • licence : AGPLv3
  • signature_date : 2021-09-28T18:02:57.514802
  • Homepage : https://nextcloud.com

  Setup.py 

# -*- 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 = '.pkg'

def install():
    version = control.version.split('-')[0]
    install_pkg('Nextcloud-%s.pkg' % version)


def uninstall():
    uninstall_app('Nextcloud')


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    bin_name_sub = bin_contains + '%s.pkg'
    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)

    # Changing version of the package
    if 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




										

  Changelog 



No changelog.txt.
									
  manifest.sha256