tis-adobe-digital-editions

4.5.11-4
Adobe Digital Editions (abbreviated ADE) is an ebook reader software program from Adobe Systems
56 downloads
Download

  Description 

  • package : tis-adobe-digital-editions
  • version : 4.5.11-4
  • architecture : all
  • categories : Media
  • maintainer : WAPT Team,Jimmy PELÉ
  • description : Adobe Digital Editions (abbreviated ADE) is an ebook reader software program from Adobe Systems
  • locale : all
  • target_os : windows
  • min_os_version :
  • max_os_version :
  • min_wapt_version :
  • sources : https://www.adobe.com/solutions/ebook/digital-editions/download.html
  • installed_size :
  • impacted_process : DigitalEditions
  • description_fr : Adobe Digital Editions (abrégé ADE) est un logiciel de lecture de livres électroniques edité par Adobe Systems
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Adobe Systems
  • licence :
  • signature_date : 2020-10-13T18:22:02.365435
  • Homepage : https://www.adobe.com/solutions/ebook/digital-editions.html

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
import requests
try:
    import bs4 as BeautifulSoup
except:
    import BeautifulSoup

uninstallkey = []

# Declaring specific app values (TO CHANGE)
bin_name_string = 'ADE_%s_Installer.exe'
silent_args = '/S'
app_uninstallkey_string = 'Adobe Digital Editions %s'


def install():
    # Specific app values
    package_version = control.version.split('-')[0]
    package_version_split = package_version.split('.')
    package_version_two_digit = '%s.%s' % (package_version_split[0],package_version_split[1])
    bin_name = bin_name_string % package_version
    app_uninstallkey = app_uninstallkey_string % package_version_two_digit

    # Installing the package
    install_exe_if_needed(bin_name
        ,silentflags=silent_args
        ,key=app_uninstallkey
        ,min_version=package_version
        ,accept_returncodes=[0,3010,1223])

    remove_desktop_shortcut(app_uninstallkey)


def update_package():
    print('Download/Update package content from upstream binary sources')

    # Getting proxy informations from WAPT settings
    proxy = {}
    if platform.system()=='Windows' and isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxy = {'http':proxywapt,'https':proxywapt}

    # Specific app values
    app_name = control.name
    url = 'https://www.adobe.com/solutions/ebook/digital-editions/download.html'

    # Getting latest version from official website
    page = requests.get(url,proxies=proxy).text
    bs = BeautifulSoup.BeautifulSoup(page)
    bs_raw_string = bs.findAll('a')

    for download in bs_raw_string:
        if download['href'].startswith('https://adedownload.adobe.com/pub/adobe/digitaleditions/'):
            if download['href'].endswith('.exe'):
                url_dl = download['href']
                version = download.text.split(' ')[0]
                break

    latest_bin = bin_name_string % version

    print('Latest ' + app_name + ' version is: ' + version)
    print('Download url is: ' + url_dl)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print('Downloading: ' + latest_bin)
        wget(url_dl,latest_bin,proxies=proxy)

		# Change version of the package
        pe = PackageEntry().load_control_from_wapt('.')
        pe.version = '%s-%s'%(version,int(pe.version.split('-',1)[1])+1)
        pe.save_control_to_wapt('.')
        print('Changing version to ' + pe.version + ' in WAPT\\control')
        print('Update package done. You can now build-upload your package')
    else:
        print('This package is already up-to-date')    

    # Deleting outdated binaries
    for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi') or glob.glob('*.zip'):
        if bin_in_dir != latest_bin :
            print('Outdated binary: ' + bin_in_dir + ' Deleted')
            remove_file(bin_in_dir)


										

  Changelog 


No changelog
  manifest.sha256 
[["ADE_4.5.11_Installer.exe","a21a9d5389728fdac6a7288953dddeea774ef2bee07f1caf7ea20bbed8f5a2c6"],["setup.py","e38112a68bd01506f89ee5a4f9dd39c0d0142535d9c9c4303fb6ca8641b18581"],["WAPT/icon.png","36c03aa9b13c7260f2aaa0bcfb78385a0b0ca31fdae47dd7a0b56a582c6c0bbe"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","eee8baf38957cd65d483219acc854e1e329ea29bfa383c5983e33632b290e23a"]]