tis-xcp-ng-center
20.04.00.32-5
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.
333 downloads

Description
- package : tis-xcp-ng-center
- version : 20.04.00.32-5
- architecture : all
- categories : System and network
- maintainer : WAPT Team,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.5
- sources :
- installed_size : 30568448
- impacted_process : XenCenterMain.exe,XCP-ng Center.exe,xe.exe
- description_fr :
- description_pl :
- description_de :
- description_es :
- description_pt :
- description_it :
- description_nl :
- description_ru :
- editor :
- licence : BSD
- signature_date : 2020-06-19T10:48:02.815000
- Homepage : https://xcp-ng.org/
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
# Declaring specific app values (TO CHANGE)
bin_name_string = 'XCP-ng-Center-%s.msi'
def install():
# Specific app values
package_version = control.version.split('-')[0]
# Getting the used storage on programfiles before installation (place it on the top)
get_disk_free_space_before = get_disk_free_space(programfiles)
# Installing the package
install_msi_if_needed(bin_name_string % package_version
,min_version=package_version)
# Return used storage of the program. (place it on the bottom)
get_disk_free_space_after = get_disk_free_space(programfiles)
free_space_after_diff = get_disk_free_space_before - get_disk_free_space_after
print("Storage used: " + str(free_space_after_diff))
def update_package():
print('Download/Update package content from upstream binary sources')
import json
# Getting proxy informations from WAPT settings
proxy = {}
if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
if proxywapt :
proxy = {'http':proxywapt,'https':proxywapt}
# Specific app values
app_name = control.name
url_api = 'https://api.github.com/repos/xcp-ng/xenadmin/releases/latest'
# Getting latest informations from Github API
json_load = json.loads(wgets(url_api,proxies=proxy))
for download in json_load['assets']:
if download['browser_download_url'].endswith('.msi'):
url_dl = download['browser_download_url']
break
version = (url_dl.split('-')[-1]).replace('.msi','')
latest_bin = bin_name_string % version
print('Latest ' + app_name + ' version is: ' + version)
print('Download url is: ' + url_dl)
# Downloading latest binaries
if not isfile(latest_bin):
print('Downloading: ' + latest_bin)
wget(url_dl,latest_bin,proxies=proxy)
# Change version of the package
print('Writing ' + version + '-0 in WAPT\\control')
from waptpackage import PackageEntry
pe = PackageEntry()
pe.load_control_from_wapt(os.getcwd())
pe.version = version + '-0'
pe.save_control_to_wapt(os.getcwd())
print('Update package done. You can now build-upload your package')
else:
print('This package is already up-to-date')
# Deleting outdated binaries
for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi'):
if bin_in_dir != latest_bin :
print('Outdated binary: ' + bin_in_dir + ' Deleted')
remove_file(bin_in_dir)
if __name__ == '__main__':
update_package()
[["WAPT/icon.png","ad74bc56ba1cc981793984de686c28183befdf39a81d755b3a390b9affd083c6"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],[".vscode/settings.json","c0a7c3e648b2b2dba581fdb84ef38f7ebd3ae99d39d8294fda2088b04d05a695"],["WAPT/changelog.txt","9b50d9efb56da5e01f521dc0ebbc2ff1399623eee364fc4bb66410bc053ca845"],[".vscode/launch.json","73ed339a2734c53613d1645b72606058a4a1eb060e44cd7d83d36add51f338bd"],["XCP-ng-Center-20.04.00.32.msi","7dee975b2b75d20686276f433efa4f9be6307d3bece5a2d255f045e2bd8855f2"],["WAPT/wapt.psproj","ab0613273a032435c397ab4b183a7a81bced95880acca8c89655b0daa6bf2f13"],["WAPT/control","6c65341f20c1412316fc3a9a1cac597665a4522c905947845f5aa443803c9458"],["setup.py","8b34be0e40dfa5df85c659e7fc54c2d2373fff7e9e88e354b1dd89a1c088b7ad"],[".env","e312ee6c8275d1f07a4ce8ccbd1a17744f156a86929fc24e25e44fb10f0997dc"],["README.md","badcea4517639ae2c9b32ad886d96724290a2943e3f5d2684fbeae78576fc549"],["Jenkinsfile","d3442f953e2bc03096f7f43c54aa30f16c06f844e42861efa28181377944d00d"]]