tis-firefox-en 56.0.2-84

  • package : tis-firefox-en
  • version : 56.0.2-84
  • description : Mozilla Web Browser Web Firefox English (disabled feature : pdfjs, mises à jour, ipv6, migration, telemetry), proxy wpad
  • maintainer : TIS <technique@tranquil-it-systems.fr>
  • date : 2018-02-27 18:59:42

setup.py

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

uninstallkey = []

def install():
    version = control.version.split('-',1)[0]
    ukey = 'Mozilla Firefox %s (x86 en-US)'%version
    exe = 'Firefox Setup %s.exe'%version
    install_exe_if_needed(exe,'-ms',key=ukey,min_version=version,killbefore='firefox.exe')


def update_package():
    """updates the package / control version with the latest stable firefox version"""
    import re,requests,urlparse,glob

    # get index of all dowloads
    """
    #url_base = 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/latest/win32/fr/'
    url_base = 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/43.0/win32/fr/'
    index = wgets(url_base)

    # get list of lastest french versions
    re_setup = re.compile(r'<a href=".*/(Firefox%20Setup%20[0-9.]*.exe)">Firefox Setup .*</a>')
    filename = urlparse.unquote(re_setup.findall(index)[0])
    url = url_base+filename
    """
    url = requests.head('https://download.mozilla.org/?product=firefox-latest&os=win&lang=en-US').headers['Location']
    filename = urlparse.unquote(url.rsplit('/',1)[1])

    if not isfile(filename):
        print('Downloading %s from %s'%(filename,url))
        wget(url,filename)

    # removes old exe
    if isfile(filename):
        exes = glob.glob('Firefox*.exe')
        for fn in exes:
            if fn != filename:
                remove_file(fn)

        # updates control version from filename, increment package version.
        control = PackageEntry().load_control_from_wapt ('.')
        control.version = '%s-%s'%(re.findall('Firefox Setup (.*)\.exe',filename)[0],int(control.version.split('-',1)[1])+1)
        control.save_control_to_wapt('.')


if __name__ == '__main__':
    update_package()

    

Changelog

No changelog
    

manifest.sha256

[["Firefox Setup 56.0.2.exe", "9b359bf1a0f2d737288f40394de51b25d108dc1d15aba7c82e3ff0010df71344"], ["setup.py", "78908f6c5f9cb7f6e91d8108bb56d14ae1ad8b5bf26f64becf9a6bc32ab0ddc1"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "602f837dd2593d9ce4b1fd8e26f485eae6f5fe53f38129fed2c09062247e9a22"], ["WAPT/control", "f7a3228681162e14b077a8e76244d5e6b0990b87b57ab5a7bd3b3f46f3594926"]]