tis-adobereader

2020.13.20074-49
Adobe Reader permit to view and print files in Portable Document Format (PDF).
60009 downloads
Download

  Description 

  • package : tis-adobereader
  • version : 2020.13.20074-49
  • architecture : all
  • categories : Office,Utilities
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Simon Fonteneau
  • description : Adobe Reader permit to view and print files in Portable Document Format (PDF).
  • locale : all
  • target_os : darwin
  • min_os_version :
  • max_os_version :
  • min_wapt_version : 1.5
  • sources : https://get.adobe.com/reader/
  • installed_size :
  • impacted_process : AcroRd32,RdrCEF,RdrServicesUpdater,AcroRd32Info
  • description_fr : Adobe Reader permet l'affichage et l'impression des fichiers PDF.
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Adobe
  • licence : Proprietary
  • signature_date : 2020-12-14T10:07:26.802941
  • Homepage : https://adobe.com/

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *
import time
import platform
import requests
import shutil
import bs4 as BeautifulSoup

uninstallkey = []


def install():
    print('installation Adobe Reader MUI')
    binary = glob.glob('*.dmg')[0]
    install_dmg(binary)


def uninstall():
    shutil.rmtree('/Applications/Adobe Acrobat Reader DC.app')


def update_package():
    # Initializing variables
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    bin_end = '_MUI.dmg'
    url = 'https://helpx.adobe.com/acrobat/release-note/release-notes-acrobat-reader.html'
    found = False

    # Getting latest version from official sources
    print('URL used is: %s' % url)
    for releases in bs_find_all(url, 'a', 'disablelinktracking', 'false', proxies=proxies):
        for urls in bs_find_all(releases['href'], 'a', 'class', 'reference external', proxies=proxies):
            if urls['href'].endswith(bin_end):
                url_dl = urls['href']
                version = releases.text.split('(')[-1].split(')')[0]
                found = True
                break
        if found:
            break

    version_adobe = version.replace('.','')
    version_full = '20%s' % version

    binary = "AcroRdrDCUpd%s_MUI.dmg" % version_adobe

    print("Latest %s version is: %s" % (app_name,version))
    print("Download url is: %s" % url_dl)

    # Deleting old file
    for f in glob.glob('*.dmg') :
        if f != binary:
            remove_file(f)

    # Downloading the last file if not present
    if not isfile(binary):
        wget(url_dl,binary,proxies=proxies)

    # Changing version of the package
    control.version = '%s-%s' % (version_full, int(control.version.split('-')[-1])+1)
    control.save_control_to_wapt()
    print('Changing version to: %s in WAPT\\control' % control.version)




def get_proxies():
    if platform.python_version_tuple()[0] == '3':
        from urllib.request import getproxies
    else:
        from urllib import getproxies
    return getproxies()


def get_proxies_from_wapt_console():
    proxies = {}
    if platform.system() == 'Windows':
        waptconsole_ini_path = makepath(user_local_appdata(), 'waptconsole', 'waptconsole.ini')
    else:
        waptconsole_ini_path = makepath(user_home_directory(), '.config', 'waptconsole', 'waptconsole.ini')
    if isfile(waptconsole_ini_path):
        proxy_wapt = inifile_readstring(waptconsole_ini_path, 'global', 'http_proxy')
        if proxy_wapt:
            proxies = {'http': proxy_wapt, 'https': proxy_wapt}
    return proxies


def bs_find(url, element, attribute=None, value=None, user_agent=None, proxies=None, features='html.parser', **kwargs):
    """"You may need to use a user agent for some websites.
    Example: user_agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0')
    """
    if user_agent:
        page = requests.get(url, proxies=proxies, headers={'User-Agent':'%s' % user_agent}, **kwargs).text
    else:
        page = requests.get(url, proxies=proxies, **kwargs).text
    soup = BeautifulSoup.BeautifulSoup(page, features=features)
    if value:
        return soup.find(element, {attribute: value})
    else:
        return soup.find(element)


def bs_find_all(url, element, attribute=None, value=None, user_agent=None, proxies=None, features='html.parser', **kwargs):
    """"You may need to use a user agent for some websites.
    Example: user_agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0')
    """
    if user_agent:
        page = requests.get(url, proxies=proxies, headers={'User-Agent':'%s' % user_agent}, **kwargs).text
    else:
        page = requests.get(url, proxies=proxies, **kwargs).text
    soup = BeautifulSoup.BeautifulSoup(page, features=features)
    if value:
        return soup.find_all(element, {attribute:value})
    else:
        return soup.find_all(element)


										

  Changelog 


Changelog software url : https://helpx.adobe.com/acrobat/release-note/release-notes-acrobat-reader.html

No changelog
  manifest.sha256 
[["AcroRdrDCUpd2001320074_MUI.dmg","9866572595638d9669ba0e6bb8a18882769648ceb1aedd9a7d6e597794b3074d"],["setup.py","34c46197cc9a50ae342124c0f193940c1d00fcdcee29974ab6e07629968fff25"],["WAPT/icon.png","148f0369973acde33bf77ee7a57e4ef5c007bb4fe79c5b3bf81b66982d3d5f83"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","fe5dea2d390ce447f128674b987fc9f6ff4f1e4a298a7ba121217e1f4d797e33"]]