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

Semián Matěj semianm at pokrok.cz
Thu Nov 14 16:44:28 CET 2013


Dne 14.11.2013 15:38, Marco Gaiarin napsal(a):
>
> I'm trying to write my first lobreoffice extension recipe, for now 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" />
>
>          <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='%COMSPEC% /c echo sì|"%ProgramFiles%\LibreOffice 4\program\unopkg" add --shared "%SOFTWARE%\WPKG\openclipart-0.1.4.oxt"' />
>          <install architecture='x64' cmd='%COMSPEC% /c echo sì|"%ProgramFiles(x86)%\LibreOffice 4\program\unopkg" add --shared "%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>
>
>
> but:
>
> 1) as you can see, because i'm in Italy, i've to do:
>
> 	%COMSPEC% /c echo sì|"%ProgramFiles%\...
>
>   there's something i can do to force unopkg to speak english?
>
>
> 2) how to write a test condition? I've looked at the C:\, but really i've not
>   found the place where file were copied.
>
>
> Thanks.
>

Hi,

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

  2) path seems to be at:
%ProgramFiles%\LibreOffice 
4\share\uno_packages\cache\uno_packages\[random]\yourpackage.oxt\

but it's using randomly named folder. Is it possible to use wildcard in 
filepath check?

-- 
S pozdravem
Matěj Semián




More information about the wpkg-users mailing list