[wpkg-users] Help with LO extensions...

Marco Gaiarin gaio at sv.lnf.it
Thu Nov 14 17:35:01 CET 2013


Mandi! Semián Matěj
  In chel di` si favelave...

>  1) there are unopkg.com and unopkg.exe, if you only run unopkg it
> execute unopkg.com, requiring confirmation. Use unopkg.exe instead.

?! I've tried to use 'unopkg.exe', but installation stalls forever,
with CPU stuck at 100%...


>  2) path seems to be at:

I've found 'list' command, a 'execute' check condition can be used.

Also, i've found the '-s' option. Now my recipe is:

 <package
        id="libreoffice-extension-openclipart"
        name="LibreOffice Extensions - OpenClipart.org integration"
        revision="0.1.4:0"
        reboot="false"
        priority="50">
        <depends package-id="libreoffice" />

        <check type="logical" condition="or">
                <check type="logical" condition="and">
                        <check type="host" condition="architecture" value="x86" />
                        <check type="execute" path='%COMSPEC% /c "%ProgramFiles%\LibreOffice 4\program\unopkg" list --shared vnd.magenta.ocal >nul' condition="exitcodeequalto" value="0" />
                </check>
                <check type="logical" condition="and">
                        <check type="host" condition="architecture" value="x64" />
                        <check type="execute" path='%COMSPEC% /c "%ProgramFiles(x86)%\LibreOffice 4\program\unopkg" list --shared vnd.magenta.ocal >nul' condition="exitcodeequalto" value="0" />
                </check>
        </check>

        <download url='http://extensions.libreoffice.org/extension-center/openclipart-org-integration/releases/0.1.4/openclipart.oxt' target='WPKG\openclipart-0.1.4.oxt' />

        <install architecture='x86' cmd='"%ProgramFiles%\LibreOffice 4\program\unopkg" add --shared -s "%SOFTWARE%\WPKG\openclipart-0.1.4.oxt"' />
        <install architecture='x64' cmd='"%ProgramFiles(x86)%\LibreOffice 4\program\unopkg" add --shared -s "%SOFTWARE%\WPKG\openclipart-0.1.4.oxt"' />

        <upgrade include='install' />
        <downgrade include='upgrade' />

        <remove architecture='x86' cmd='"%ProgramFiles%\LibreOffice 4\program\unopkg" remove --shared vnd.magenta.ocal' />
        <remove architecture='x64' cmd='"%ProgramFiles(x86)%\LibreOffice 4\program\unopkg" remove --shared vnd.magenta.ocal' />
 </package>


Anyway this is still unoptimal. Even using the '%COMSPEC% /c echo sì|',
or using the '-s', or both, users are prompted to accept the licence at
first LO start.

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                    http://www.sv.lnf.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
	   http://www.lanostrafamiglia.it/chi_siamo/5xmille.php
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)



More information about the wpkg-users mailing list