tis-libreoffice-ooohg-gallery

1.0.0-2
Cartography Add-on for Libre Office
1672 downloads
Download
View on luti logo
tis-libreoffice-ooohg-gallery icon

  Description 

  • package : tis-libreoffice-ooohg-gallery
  • version : 1.0.0-2
  • architecture : all
  • categories : Office
  • maintainer : Tranquil IT
  • description : Cartography Add-on for Libre Office
  • locale :
  • target_os : windows
  • min_wapt_version :
  • sources :
  • installed_size :
  • impacted_process :
  • description_fr : Extension de cartographie pour Libre Office
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2022-01-15T17:00:27.912017
  • 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(programfiles + '\\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-ooohg-gallery')
        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)


def update_package():
    wget('http://srvtemplates.ad.tranquil.it/binary_cache/TempWmicBatchFile.bat','TempWmicBatchFile.bat',sha256='D3BE9EC618C982A1971BC1547125821BCC939AF4A22145D7F9DA6A4B63F4ADDC')
    wget('http://srvtemplates.ad.tranquil.it/binary_cache/OOoHG_Gallery_Package.oxt','OOoHG_Gallery_Package.oxt',sha256='5605B13F040AE7F1A909761DF6C8957BB088912896D23855CD4AC67174A26258')

										

  Changelog 



No changelog.txt.
									
  manifest.sha256