tis-adobeair 26.0.0.127-1

  • package : tis-adobeair
  • version : 26.0.0.127-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 : 2018-02-27 18:54:54

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()
    

Changelog

No changelog
    

manifest.sha256

[["WAPT/icon.png", "36028b417347c82607ec453232f6f33df6627b878a025bfd7aaec2cd6df0d7cd"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "602f837dd2593d9ce4b1fd8e26f485eae6f5fe53f38129fed2c09062247e9a22"], ["AdobeAIRInstaller.exe", "fe43a758b62a68d78e99770e91381a497f807bcb48799065718746bd1a48847f"], ["setup.py", "6cf16e375b5976357c4abb05a9a651b5d9db255d2b397c013360eed830850f56"], ["WAPT/control", "59103a039f2e5fb6840ae66d8afc54525bc93517d01770b29b82f1815752d2df"]]