tis-adobeair 29.0.0.112-1

  • package : tis-adobeair
  • version : 29.0.0.112-1
  • description : Adobe AIR is a runtime for software created with Adobe Flash and ActionScript without using a web browser.
  • maintainer : Simon Fonteneau
  • date : 2018-03-13 09:52:45

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)
    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/',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_package()
    

Changelog

No changelog
    

manifest.sha256

[["WAPT/icon.png", "36028b417347c82607ec453232f6f33df6627b878a025bfd7aaec2cd6df0d7cd"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "b6db619daee03b47d37e5766a6a743091bfd8efc2ddada421708ae7d2d044ac0"], ["AdobeAIRInstaller.exe", "5186b54682644a30f2be61c9b510de9a9a76e301bc1b42f0f1bc50bd809a3625"], ["setup.py", "04f38d29132eadc3bf3c6ac2773f11934a80c51e088702b73e5e7c15b3bc1a3d"], ["WAPT/control", "725bf652b0098d129fb0a10d398d954d8282e3e2724dce3536b45593b9f57c4d"]]