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 : 2017-07-20 11:21:15
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-112115
  • min_os_version :
  • min_wapt_version :
  • 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)


    

manifest

[["WAPT/icon.png", "baaf8b9d6669107a1455a6cd9266bf8cea3bce19"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "fd220f992290e136b50a261467611b72aa54b4ff"], ["WAPT/control", "7a16766f6416d5fbd930549f4372f0da16e1bf5d"], ["TempWmicBatchFile.bat", "15648fd8e5d1303e0339bfc602cd5c0a96edc26b"], ["DmathsAddon.oxt", "a886ab557053096638deb0c041f74e4fa78b138a"], ["setup.py", "048532e6bd0f2b50d547fabac77b56dae2f3d3d6"], ["WAPT/Thumbs.db", "e22d1b5d790cd8daf462a88915bb668cfe56bce2"]]