tis-thunderbird 60.3.2-53

  • package : tis-thunderbird
  • version : 60.3.2-53
  • architecture : x64
  • locale : en
  • description : Mozilla Email client POP IMAP LDAP
  • maintainer : Kevin Guerineau
  • date : 2018-12-03 10:42:13
  • min_wapt_version : 1.5
  • min_os_version : 6.1
  • max_os_version :
  • impacted_process : thunderbird.exe

setup.py

#!/usr/bin/python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------
#    This file is part of WAPT
#    Copyright (C) 2013  Tranquil IT Systems http://www.tranquil.it
#    WAPT aims to help Windows systems administrators to deploy
#    setup and update applications on users PC.
#
#    WAPT is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    WAPT is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with WAPT.  If not, see <http://www.gnu.org/licenses/>.
#
# -----------------------------------------------------------------------
from setuphelpers import *
import time
import subprocess

uninstallkey = []

def install():
    waptversion = Version(__version__)

    if waptversion > Version('1.5') :

        softname = 'Mozilla Thunderbird'
        versionsoft = control['version'].split('-',1)[0]

        check_installed = installed_softwares(softname)
        diskfreespacebefore = get_disk_free_space(programfiles)

        if check_installed:
                 for uninstall in check_installed:
                        if iswin64():
                          if 'x86' in uninstall['name'] :
                            print(u'remove Thunderbird x86 for install Thunderbird x64' )
                            if uninstall_key_exists(uninstall['key']):
                                killalltasks('thunderbird.exe')
                                cmd = WAPT.uninstall_cmd(uninstall['key'])
                                run(cmd)
                                time.sleep (5)

        version = control.version.split('-',1)[0]
        arch = control.architecture
        #locale = control.locale
        locale = 'en-US'
        key='Mozilla Thunderbird %s (%s %s)' % (version,arch,locale)
        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"))

        diskfreespaceafter = get_disk_free_space(programfiles)
        difffreespace = diskfreespacebefore - diskfreespaceafter
        print(ur"Espace disque necessaire pour l'installation : " + str(difffreespace))

    else:
        error('This package is not compatible with your WAPT version. Please upgrade to WAPT 1.5 or more.')

def session_setup():

    thunderbird_shortcut = makepath(user_desktop(),'Mozilla Thunderbird.lnk')

    if isfile(thunderbird_shortcut):
        remove_user_desktop_shortcut('Mozilla Thunderbird')
        create_user_desktop_shortcut('Mozilla Thunderbird' % label,makepath(programfiles64,'Mozilla Thunderbird','thunderbird.exe'))

    thunderbird_quickLaunch = makepath(user_appdata(),'Microsoft','Internet Explorer','Quick Launch', 'User Pinned', 'TaskBar', 'Mozilla Thunderbird.Lnk')

    if isfile(thunderbird_quickLaunch):
        remove_file(thunderbird_quickLaunch)
        create_shortcut(thunderbird_quickLaunch,makepath(programfiles,'Mozilla Thunderbird','thunderbird.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/thunderbird/releases/latest/win32/fr/'
    index = wgets(url_base)

    # get list of lastest french versions
    re_setup = re.compile(r'<a href=".*/(Thunderbird%20Setup%20[0-9.]*\.exe)">Thunderbird')
    url = url_base+filename
    """
    url = requests.head('https://download.mozilla.org/?product=thunderbird-latest&os=win64&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('Thunderbird*.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(r'Thunderbird 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

override.ini 3c930ba0fce98f0a232101b76885a8fade8edd4a6ea19a00d372aaff426f0125
local-settings.js 78498a0d8c1e6b137e93081a785aacf63fccc3fb8f7ea04354d48224f5e1b357
WAPT/icon.png b923d513ebd9944d0b686bc63806b5792582bdc3aa6b577e0743f1a674a7ad58
WAPT/certificate.crt 13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779
WAPT/wapt.psproj df3e2fa87fea9c7bdfcc22039b9ef7303f092898882d9f3f4233f5d92f90b3c7
Thunderbird Setup 60.3.2.exe 5980b072511ba663818326a800ea1ba98f7207131c3dac090c59e67d1f0e3c68
setup.py 16b7f60cb4ecd24b33100b80295aac9903e33ff24ace375593dcc770e64eecd8
userChrome.css 46620dc25abe0400e625a0f078fc3ad9c4a668e0f880a7b451feb7d4fc084c26
WAPT/control 63f47ec20834465c9ab11262a38da9e0618b26b7b5367285ebcdaeb9370349c7
mozilla.cfg a1075fa9c4f3ef5b34afa8e7db5919d95f23671f2046a791b050308a6e66dcd2