tis-adobeair 31.0.0.96-1

  • package : tis-adobeair
  • version : 31.0.0.96-1
  • architecture : all
  • locale : all
  • description : Adobe AIR is a runtime for software created with Adobe Flash and ActionScript without using a web browser.
  • maintainer : Simon Fonteneau
  • date : 2018-09-11 15:15:11
  • min_os_version :
  • max_os_version :

setup.py

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

#proxy={'http':'http://srvproxy:3128','https':'http://srvproxy:3128'}
proxy = {}

# 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)
    uninstallkey.remove('Adobe AIR')
    mkdirs(makepath(programfiles,'wapt-files'))
    filecopyto('AdobeAIRInstaller.exe',makepath(programfiles,'wapt-files'))

def uninstall():
    run('"%s" -uninstall' % makepath(programfiles,'wapt-files','AdobeAIRInstaller.exe'))
    remove_file(makepath(programfiles,'wapt-files','AdobeAIRInstaller.exe'))

def update_package():

    import requests,BeautifulSoup
    page = requests.get('https://get.adobe.com/fr/air/',proxies=proxy,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',proxies=proxy)

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

Changelog

No changelog
    

manifest.sha256

WAPT/icon.png 36028b417347c82607ec453232f6f33df6627b878a025bfd7aaec2cd6df0d7cd
WAPT/certificate.crt 13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779
WAPT/wapt.psproj e306ae088b4ffc91364d6f53a3933bffa75f4bc4f8a3d6ff422209e90760feb0
AdobeAIRInstaller.exe dc82421f135627802b21619bdb7e4b9b0ec16d351120485c575aa6c16cd2737e
setup.py 9f5ce2313f7aa16aa290fd9d23ee64498528869b48d43fc7a7955f711a795bed
WAPT/control 9582915a19ab4dc35af2bd15fc8e5cb517470c27aa131cfd90fbfef94596723a