tis-adobeair 26.0.0.118-1

  • package : tis-adobeair
  • version : 26.0.0.118-1
  • description : La technologie AIR d'Adobe est utilisée par les développeurs créer des application internet compatibles avec Windows et Mac OS X
  • maintainer : Simon Fonteneau
  • date : 2017-07-20 11:18:11
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-111811
  • min_os_version :
  • min_wapt_version :

setup.py

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

# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = []

def install():

    print('installing Adobe Air')
    versionpaquet = control['version'].split('-',1)[0]
    install_exe_if_needed('AdobeAIRInstaller.exe',silentflags='-silent',key='Adobe AIR',min_version=versionpaquet,killbefore=['iexplorer.exe','firefox.exe'])

def update_sources():

    import requests,BeautifulSoup
    page = requests.get('https://get.adobe.com/fr/air/',headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'}).text
    bs = BeautifulSoup.BeautifulSoup(page)
    latest_version = bs.find(id="autoSelectedVersion").find(id="AUTO_ID_columnleft_p_version").text.replace('Version','').strip()
    print('Latest version: %s' % latest_version)

    wget('http://airdownload.adobe.com/air/win/download/%s/AdobeAIRInstaller.exe' % (latest_version),'AdobeAIRInstaller.exe')

    vers = get_file_properties('AdobeAIRInstaller.exe')['FileVersion']

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

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

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

if __name__ == '__main__':
    update_sources()
    

manifest

[["WAPT/icon.png", "298f8dda03e46bcee9f2896d4205ad554ec1b5d9"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "557e60050809687d56525e6ac46df9c0e02ccae6"], ["AdobeAIRInstaller.exe", "40756f7eb939ca13b8b9b1fd82f4528a4cc0a101"], ["setup.py", "a91bf3ab8199a1bb5aa0c8ba039c969685b77a24"], ["WAPT/control", "23f35135b0fdc86d2634581e9cd7b775807f6bf7"]]