Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | 18-Oct-2019 | - | ||||
build/ | H | 30-Nov-2023 | - | |||
update/ | H | 18-Oct-2019 | - | |||
readme.txt | H A D | 27-Apr-2021 | 2.1 KiB | 39 | 29 | |
updateinfo.oxt | H A D | 18-Oct-2019 | 4.2 KiB |
readme.txt
1 The extension build in this test uses an update information which is obtained 2 through a http get request. That is the URL does not reference an update 3 information file. Instead it invokes code on a webserver which returns the 4 update information. The URL used in this example is: 5 6 http://update.services.openoffice.org/ProductUpdateService/check.Update?product=extension&extensionid=org.openoffice.extensions.testarea.desktop.updateinfo&refresh=true 7 8 The updateinfo.oxt in this directory has the version 1.0 and in the sub-directory "update is the version 2 of this extension. Version 1.0 is also available here 9 /extensions/www/testarea/desktop/updateinfocreation/updateinfo.oxt 10 and version 2.0 here 11 /extensions/www/testarea/desktop/updateinfocreation/update/updateinfo.oxt 12 13 Therefore they can be accessed through 14 15 http://extensions.openoffice.org/testarea/desktop/updateinfocreation/updateinfo.oxt 16 and 17 http://extensions.openoffice.org/testarea/desktop/updateinfocreation/update/updateinfo.oxt 18 19 The latter location (version 2.0) will also be referenced by the update information 20 which are returned by the webserver. 21 22 The build sub-directory contains the code of the extension (version 2.0) and can 23 be build by calling dmake in this directory. The makefile uses the special macros: 24 25 EXTUPDATEINFO_NAME=org.openoffice.extensions.testarea.desktop.updateinfo.update.xml 26 EXTUPDATEINFO_SOURCE=description.xml 27 EXTUPDATEINFO_URLS = http://extensions.openoffice.org/testarea/desktop/updateinfocreation/update/updateinfo.oxt 28 29 This causes the generation of the update information file. This file could be 30 directly references by the URL in the <update-information> of the description.xml. 31 See also the Wiki entry at: 32 https://wiki.openoffice.org/wiki/Creating_update_information_for_extensions 33 This generated update information file can then be used by the webserver, when it 34 sends back the requested update information. The update information file will be 35 generated in the misc diretory of the output directory. 36 37 The update information file needs to be copied into common.pro/pus.mxyz directory. 38 The project mwsfinish will process the files in the pus directory. 39