tis-libreoffice-dmaths 3.5.4-1

  • package : tis-libreoffice-dmaths
  • version : 3.5.4-1
  • description : Extension de LibreOffice pour les formules scientifiques
  • maintainer : mcadorel-adm
  • date : 2018-02-27 19:01:50
  • Depends :

setup.py

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

# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = []

def install():
    extension_name = 'DmathsAddon.oxt'
    killalltasks('soffice.exe', 'soffice.bin')

    # ce verrou ne disparaît pas toujours à la fermeture de LibreOffice
    lock_path = os.path.join(application_data(),'LibreOffice','4','.lock')
    remove_file(lock_path)

    for install_dir in  glob.glob(programfiles32 + '\\LibreOffice*'):
        unopkg_com = os.path.join(install_dir,'program','unopkg.com')
        cmd = r'"%(unopkg_com)s" add --suppress-license --force --shared %(extension_name)s' % {'unopkg_com':unopkg_com,'extension_name':extension_name}
        print('installing tis-libreoffice-dmaths')
        run(cmd)


def uninstall():
    # pour recuperer l'identifiant de desinstallation,
    # lancer la commande suivante :
    # C:\Program Files (x86)\LibreOffice 4\program>unopkg.com list --shared
    # puis recuperer l'identificant sur la ligne qui commence par :
    # Identifier: Dmaths
    extension_identifier = 'Dmaths'

    killalltasks('soffice.exe', 'soffice.bin')
    lock_path = os.path.join(application_data(),'LibreOffice','4','.lock')
    remove_file(lock_path)

    for install_dir in  glob.glob(programfiles32 + '\\LibreOffice*'):
        unopkg_com = os.path.join(install_dir,'program','unopkg.com')
        cmd = r'"%(unopkg_com)s" remove --suppress-license --shared %(extension_identifier)s' % {'unopkg_com':unopkg_com,'extension_identifier':extension_identifier}
        print('uninstalling tis-libreoffice-dmaths')
        print (cmd)
        run(cmd)


    

Changelog

No changelog
    

manifest.sha256

[["WAPT/icon.png", "ba3c6c1437d4641c1d3599133198eff40a73baad1e56d78b4c920ac23ea3ce07"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "af0bfb79cfa2e2f1cecd14449c2360511f9c4d7bd9898cdf4789512f062955d4"], ["WAPT/control", "da3d1206f07f49a2f8a22f6ec8aba699bbf7b68eeafcb87df63034961fcad8a7"], ["TempWmicBatchFile.bat", "d3be9ec618c982a1971bc1547125821bcc939af4a22145d7f9da6a4b63f4addc"], ["DmathsAddon.oxt", "5f70f8f4ab7008dadcc596c800349e0366c724b36b87157a00711e9e088f2afb"], ["setup.py", "843cfb5ee0af8b8c9f28816d8c1c82ac702622fc03993589dc36c0a2ac1030ed"], ["WAPT/Thumbs.db", "a268e5accba0e89acc61a47e4ef08fb492cabada66fb78250a9b72cb7e641c9d"]]