tis-thunderbird 60.0-15

  • package : tis-thunderbird
  • version : 60.0-15
  • architecture : all
  • locale : fr
  • description : Mozilla Email client POP IMAP LDAP
  • maintainer : Kevin Guerineau
  • date : 2018-08-08 16:05:46
  • min_wapt_version : 1.3.12
  • min_os_version : 5.1
  • max_os_version :
  • impacted_process :

setup.py

#!/usr/bin/python
# -*- coding: utf-8 -*-

from setuphelpers import *


uninstallkey = []


#proxy={'http':'http://srvproxy:3128','https':'http://srvproxy:3128'}
proxy = {}

def install():
    version = control['version'].split('-',1)[0]
    key='Mozilla Thunderbird %s (x86 fr)' % version
    install_exe_if_needed('Thunderbird Setup %s.exe' % version ,silentflags='-ms',key=key ,min_version=version,killbefore=['thunderbird.exe'])
    remove_desktop_shortcut('Mozilla Thunderbird')


    print("Disabling auto update")
    filecopyto("mozilla.cfg",install_location(key))
    filecopyto("local-settings.js",makepath(install_location(key),"defaults","pref"))


def update_package():

    import re,requests,urlparse,glob

    url = requests.head('https://download.mozilla.org/?product=thunderbird-latest&os=win&lang=fr',proxies=proxy).headers['Location']
    filename = urlparse.unquote(url.rsplit('/',1)[1])
    if not isfile(filename):
        print('Downloading %s from %s'%(filename,url))
        wget(url,filename,proxies=proxy)
    else:
        print(filename + ' already exist')


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

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

    print('The update is complete, you can now test and then launch a build upload.')

if __name__ == '__main__':
    update_package()


    

Changelog

No changelog
    

manifest.sha256

local-settings.js 78498a0d8c1e6b137e93081a785aacf63fccc3fb8f7ea04354d48224f5e1b357
WAPT/icon.png 4c42c4e3dc4d47449a18c238f73a5d41d589afd612c1d26ea53df46b00ed2425
WAPT/certificate.crt 13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779
WAPT/wapt.psproj df3e2fa87fea9c7bdfcc22039b9ef7303f092898882d9f3f4233f5d92f90b3c7
Thunderbird Setup 60.0.exe c9ad2e211d23addfd8172b2a9de71fad8233feb60a8b702e6b7e4094ef517500
setup.py dec0939f6cceae2d290b80de46efc3cfe713bee01d8bc3aeca304e140cc175d5
WAPT/control 453088a9c3179478b098ce0caa520a79eae7a8645483c3847117a4daad9445b7
mozilla.cfg d9105efcd02b10b92a94166553e9f3c76dd9ea53115689744488701499db784a