tis-libreoffice-numbertext

0.9.5-1
Extension LibreOffice pour ecrire les nombres en lettres et en devises
909 downloads
Download

  Description 

  • package : tis-libreoffice-numbertext
  • version : 0.9.5-1
  • architecture : all
  • categories :
  • maintainer : mcadorel-adm
  • description : Extension LibreOffice pour ecrire les nombres en lettres et en devises
  • locale :
  • target_os :
  • min_os_version :
  • max_os_version :
  • min_wapt_version :
  • sources :
  • installed_size :
  • impacted_process :
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-02-27T21:34:55.511024
  • Depends :

  Setup.py 

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

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

# command(s) to launch to remove the application(s)
uninstallstring = []

# list of required parameters names (string) which can be used during install
required_params = []


def install():
    extension_name = 'numbertext-0.9.5.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-libreoff-numbertext')
        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'identifiant sur la ligne qui commence par :
    # Identifier: fr.starxpert.extensions.multidiff
    extension_identifier = 'org.numbertext-calc-addin'

    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-multidiff')
        print (cmd)
        run(cmd)
										

  Changelog 


No changelog
  manifest.sha256 
[["WAPT/icon.png","ba3c6c1437d4641c1d3599133198eff40a73baad1e56d78b4c920ac23ea3ce07"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","af0bfb79cfa2e2f1cecd14449c2360511f9c4d7bd9898cdf4789512f062955d4"],["WAPT/control","e4093397b4e749f77f30b90c5620d3736af80c95d30c52185bad9bd0b22bd25a"],["TempWmicBatchFile.bat","d3be9ec618c982a1971bc1547125821bcc939af4a22145d7f9da6a4b63f4addc"],["setup.py","18514c0cece15db61bb8bf260cecd9a92ffaa5185c8c01bcce7f001b763ffa63"],["numbertext-0.9.5.oxt","1568ed1d2feb8210bb5de61d69574a165cded536cfa17c6953c9064076469de2"],["WAPT/Thumbs.db","d2a5f3fcc9b48332ae16b23427e32d8826c02f3ac05355ecc5c764efc7233220"]]