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

    

manifest

[["WAPT/icon.png", "baaf8b9d6669107a1455a6cd9266bf8cea3bce19"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["OOoHG_Gallery_Package.oxt", "59d5af5c32ea511f08533ad782f6f60e038f3ade"], ["WAPT/wapt.psproj", "fd220f992290e136b50a261467611b72aa54b4ff"], ["WAPT/control", "86990d06f0b8733c536af8646220ce5b39a4d104"], ["TempWmicBatchFile.bat", "15648fd8e5d1303e0339bfc602cd5c0a96edc26b"], ["setup.py", "068d26f15cdd8f3917b7c6cf3e0692ada6c39747"], ["WAPT/Thumbs.db", "d494bc8b9e0b86cbece80193a789d725cbeddd07"]]