tis-hedgewars

1.0.0-2
Hedgewars
30 downloads
Download

  Description 

  • package : tis-hedgewars
  • version : 1.0.0-2
  • architecture : all
  • categories :
  • maintainer : Simon Fonteneau
  • description : Hedgewars
  • locale :
  • target_os : windows
  • min_os_version :
  • max_os_version :
  • min_wapt_version :
  • sources :
  • installed_size :
  • impacted_process :
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-02-27T21:33:21.065616

  Setup.py 

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

uninstallkey = []

def install():
    versionpaquet = control['version'].split('-',1)[0]
    print('installing smp-hedgewars-win32')
    install_exe_if_needed("hedgewars-%s.exe" % versionpaquet,'/S',key='hedgewars',min_version=versionpaquet)

def update_package():
    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}

    lastestversion = wgets('https://www.hedgewars.org/download.html',proxies=proxies).split('.exe')[0].split('Hedgewars-')[-1]
    if not isfile("hedgewars-%s.exe" % lastestversion):
        wget('https://www.hedgewars.org/download/releases/Hedgewars-%s.exe' %lastestversion,"hedgewars-%s.exe" % lastestversion,proxies=proxies)

    for exe in glob.glob('*.exe'):
        if exe != 'hedgewars-%s.exe' %lastestversion :
            remove_file(exe)

    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())
    pe.version = lastestversion + '-0'
    pe.save_control_to_wapt(os.getcwd())

if __name__ == '__main__':
    update_package()
										

  Changelog 


No changelog
  manifest.sha256 
[["WAPT/icon.png","974f17cd9542ad9b58ff4b22060b06c9f23bc97fee7edeb19d068992be671995"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","252b70e9f3a4939df417f84432ee839ac8069089be2041c45a7348db28fc2ea0"],["WAPT/control","2c4c18e17456da740ae5ec749b3d84491905d4e17fcf65b03a51a0b72468bbd3"],["setup.py","a38a0c4c423cc9da2d5f2b33159d7a2b3415c889b4425efd43dca6e7b2f2e7ab"],["Jenkinsfile","023e2bdc94cd8e66d6dac9da416de955471e24dc1a41be416d0ee5979dbec5f2"],["README.md","80478ba3a04ce6cd0f8673b8a3184560395420d66373252d65f87b86b29f1305"],["hedgewars-1.0.0.exe","cbbdbfcc560313234d08c8d445a8e81137e958dc7b4a67802671aa6407b5ba83"]]