tis-xcp-ng-center

20.4.0.32-8
XCP-ng Center is a Windows-based management tool for XCP-ng and Citrix® XenServer® environments which enables users to manage and monitor XCP-ng and Citrix® XenServer® hosts and resource pools, and to deploy, monitor, manage and migrate virtual machines.
334 downloads
Download

  Description 

  • package : tis-xcp-ng-center
  • version : 20.4.0.32-8
  • architecture : all
  • categories : System and network
  • maintainer : WAPT Team, Tranquil IT, Jimmy PELÉ
  • description : XCP-ng Center is a Windows-based management tool for XCP-ng and Citrix® XenServer® environments which enables users to manage and monitor XCP-ng and Citrix® XenServer® hosts and resource pools, and to deploy, monitor, manage and migrate virtual machines.
  • locale :
  • target_os : windows
  • min_os_version :
  • max_os_version :
  • min_wapt_version : 1.7
  • sources :
  • installed_size :
  • impacted_process : XenCenterMain, XCP-ng Center, xe
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence : BSD
  • signature_date : 2020-08-12T11:29:05.444631
  • Homepage : https://xcp-ng.org/

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
import json

uninstallkey = []

# Defining variables
bin_name_string = 'XCP-ng-Center-%s.msi'


def install():
    # Initializing variables
    package_version = control.version.split('-')[0]
    bin_end = bin_name_string.split('%s')[-1]
    bin_name = glob.glob('*%s' % bin_end)[0]

    # Installing the package
    print('Installing: %s' % bin_name)
    install_msi_if_needed(bin_name,
        min_version=package_version)


def update_package():
    print('Download/Update package content from upstream binary sources')

    # Getting proxy informations from WAPT settings
    proxy = {}
    if platform.system()=='Windows' and isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxy = {'http':proxywapt,'https':proxywapt}

    # Initializing variables
    app_name = control.name
    git_repo = 'xcp-ng/xenadmin'
    url_api = 'https://api.github.com/repos/%s/releases/latest' % git_repo
    bin_end = bin_name_string.split('.')[-1]

    # Getting latest version from official website
    print('API used is: ' + url_api)
    json_load = json.loads(wgets(url_api,proxies=proxy))

    for download in json_load['assets']:
        if download['name'].endswith(bin_end):
            url_dl = download['browser_download_url']
            break

    version = json_load['tag_name'].replace('v','')
    latest_bin = bin_name_string % version

    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=proxy)

        # Checking version from file
        version_from_file = get_msi_properties(latest_bin)['ProductVersion']
        if version != version_from_file and version_from_file != '':
            version = version_from_file
            old_latest_bin = latest_bin
            latest_bin = bin_name_string % version
            if isfile(latest_bin):
                remove_file(latest_bin)
            os.rename(old_latest_bin,latest_bin)
            print('Verified latest ' + app_name + ' version is: ' + version)

        # Changing version of the package
        control.version = '%s-%s'%(version,int(control.version.split('-')[-1])+1)
        control.save_control_to_wapt()
        print('Changing version to: %s in WAPT\\control' % control.version)

    # Deleting outdated binaries
    for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi') or glob.glob('*.zip'):
        if bin_in_dir != latest_bin :
            print('Outdated binary: %s Deleted' % bin_in_dir)
            remove_file(bin_in_dir)




										

  Changelog 


Changelog software url : https://github.com/xcp-ng/xenadmin/releases

No changelog
  manifest.sha256 
[["setup.py","b9f4ce21620c1c78fdfc4e6ee32ce98dd5a7a4e59b96fdd2be20f74bc3ee8e5f"],["WAPT/icon.png","ad74bc56ba1cc981793984de686c28183befdf39a81d755b3a390b9affd083c6"],["XCP-ng-Center-20.04.00.32.msi","7dee975b2b75d20686276f433efa4f9be6307d3bece5a2d255f045e2bd8855f2"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","88dc9a9656092c9569696350eea307c3c8f7b756cc4d4ae70f2d3632c6cdf82b"]]