tis-libreoffice-ooohg-gallery 1.0.0-1

  • package : tis-libreoffice-ooohg-gallery
  • version : 1.0.0-1
  • description : Extension LibreOffice pour la cartographie
  • maintainer : mcadorel-adm
  • date : 2018-02-27 19:01:59
  • Depends :

setup.py

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

uninstallkey = []

def install():
    extension_name = 'OOoHG_Gallery_Package.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-ooo')
        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: fr.ooohg.gallery.extension
    extension_identifier = 'fr.ooohg.gallery.extension'

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

    

Changelog

No changelog
    

manifest.sha256

[["WAPT/icon.png", "ba3c6c1437d4641c1d3599133198eff40a73baad1e56d78b4c920ac23ea3ce07"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["OOoHG_Gallery_Package.oxt", "5605b13f040ae7f1a909761df6c8957bb088912896d23855cd4ac67174a26258"], ["WAPT/wapt.psproj", "af0bfb79cfa2e2f1cecd14449c2360511f9c4d7bd9898cdf4789512f062955d4"], ["WAPT/control", "39246e0892c19679a7ebef6f3bc9308978eb61737a0180c9ae04682fd35d063b"], ["TempWmicBatchFile.bat", "d3be9ec618c982a1971bc1547125821bcc939af4a22145d7f9da6a4b63f4addc"], ["setup.py", "3a9d7ecdffaf0f1ab4ccd580c635a39d5ae72a210d1471b48fc0202e689d8ee6"], ["WAPT/Thumbs.db", "95674fa270c4cd2e5606381f7879199cd989a37d89032f18662681778f933760"]]