tis-adobereader

2020.12.20048-43
Adobe Reader permit to view and print files in Portable Document Format (PDF).
60013 downloads
Download

  Description 

  • package : tis-adobereader
  • version : 2020.12.20048-43
  • 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-09-28T10:12:16.789164
  • Homepage : https://adobe.com/

  Setup.py 

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

uninstallkey = []

def install():
    print('installation Adobe Reader MUI')
    filepkg = glob.glob('*.pkg')[0]
    install_pkg(filepkg)


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




def update_package():
    import re
    # Initializing variables
    proxy = get_proxies_from_wapt()

    # Recover the last msp file
    realversion = re.findall('class="filename"><a href="(.*)/">',ftp_read("ftp://ftp.adobe.com/pub/adobe/reader/mac/AcrobatDC/"))[-2]

    filemsp = "AcroRdrDCUpd%s_MUI.pkg" % realversion

    # Delete old msp file

    for f in glob.glob('*.pkg') :
        if f != filemsp :
            remove_file(f)

    # Download the last msp file if not present
    if not isfile(filemsp):
        wget("http://ftp.adobe.com/pub/adobe/reader/mac/AcrobatDC/%s/%s" % (realversion,filemsp),filemsp,proxies=proxy)


    vers = realversion[:2] + '.' + realversion[2:-5] + '.' + realversion[-5:]

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


def ftp_read(url):
    from urllib.request import urlopen
    import os
    if get_proxies_from_wapt() :
        os.environ['ftp_proxy'] = get_proxies_from_wapt()['http']
    sock = urlopen(url)
    htmlSource = sock.read()
    sock.close()
    return ensure_unicode(htmlSource)

def get_proxies_from_wapt():
    import platform
    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





										

  Changelog 


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

No changelog
  manifest.sha256 
[["AcroRdrDCUpd2001220048_MUI.pkg","4981b8eb6f69a939c19dc515312df35743f6e7e30316afb31032b89e61898f27"],["setup.py","a5ef77a09fa5932c09b058531b96657f0d2ed8c469df3800f5eb9c7fdefe63f1"],["WAPT/icon.png","148f0369973acde33bf77ee7a57e4ef5c007bb4fe79c5b3bf81b66982d3d5f83"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","aa4c71a2796e6f92a1d5ce939e588762644ccb001347f5ec05df573b8488fed0"]]