tis-fogclient

0.11.16-3
Fog Client ! Warning ! http://fogserver/fog should work, otherwise the installation will crash
787 downloads
Download

  Description 

  • package : tis-fogclient
  • version : 0.11.16-3
  • architecture : all
  • categories :
  • maintainer : Simon Fonteneau
  • description : Fog Client ! Warning ! http://fogserver/fog should work, otherwise the installation will crash
  • locale :
  • target_os : windows
  • min_wapt_version :
  • sources :
  • installed_size :
  • impacted_process :
  • description_fr : Client Fog Attention ! http://fogserveur/fog doit fonctionner, sinon l'installation va planter
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-02-27T21:32:43.781672

  Setup.py 

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

uninstallkey = []

properties = {
    'USETRAY':0,
    'HTTPS':0,
    'WEBADDRESS':'fogserveur',
    'WEBROOT':'/fog',
    'ROOTLOG':0,
    }

def install():

    for soft in installed_softwares('FOG Service'):
        run(WAPT.uninstall_cmd(soft['key']))

    print('installing Fog Client')
    install_msi_if_needed('FOGService.msi',properties=properties)




def update_package():
    import json

    proxies = {}
    if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxies = {'http':proxywapt,'https':proxywapt}

    lastversion = json.loads(wgets('https://api.github.com/repos/FOGProject/fog-client/releases/latest',proxies=proxies))['html_url'].split('/')[-1].strip('v')

    for msi in glob.glob('*.msi'):
        if Version(get_msi_properties(msi)['ProductVersion']) != Version(lastversion):
            remove_file(msi)

    if not isfile('FOGService.msi'):
        print('Downloading FOGService.msi')
        wget('https://github.com/FOGProject/fog-client/releases/download/%s/FOGService.msi' % (lastversion),'FOGService.msi',proxies=proxies)
    else:
        print('Already up to date, skipped')

    os.chdir(os.path.dirname(__file__))

    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())

    pe.version = lastversion + '-0'
    pe.save_control_to_wapt(os.getcwd())


if __name__ == '__main__':
    update_package()
										

  Changelog 



No changelog.txt.
									
  manifest.sha256