Update home
parent
6785e581e6
commit
998460b5f3
76
Home.md
76
Home.md
|
@ -7,7 +7,7 @@
|
||||||
With `zaz`, you can create:
|
With `zaz`, you can create:
|
||||||
|
|
||||||
* Extensions for final user.
|
* Extensions for final user.
|
||||||
* New components for used from Basic developer.
|
* New components for used from Basic developers.
|
||||||
* AddIn, new functions for Calc.
|
* AddIn, new functions for Calc.
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,30 +15,76 @@ With `zaz`, you can create:
|
||||||
|
|
||||||
* Python 3.7+
|
* Python 3.7+
|
||||||
* LibreOffice with support for macros Python
|
* LibreOffice with support for macros Python
|
||||||
* LibreOffice SDK, for new components and Add-In
|
* LibreOffice SDK, for new components and AddIn
|
||||||
|
* For ArchLinux
|
||||||
|
```
|
||||||
|
sudo pacman -S libreoffice-fresh-sdk
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
* Clone this repository (recommended) or [download it](https://git.elmau.net/elmau/zaz/archive/master.zip)
|
* Clone this repository.
|
||||||
```
|
```
|
||||||
git clone https://git.elmau.net/elmau/zaz.git
|
git clone https://git.elmau.net/elmau/zaz.git
|
||||||
```
|
```
|
||||||
|
|
||||||
* Copy folder `source`
|
|
||||||
```
|
|
||||||
cp -r zaz/source/ my_new_extension
|
|
||||||
|
|
||||||
cd my_new_extension
|
|
||||||
```
|
|
||||||
|
|
||||||
* Rename file config
|
|
||||||
```
|
|
||||||
mv config.py.example config.py
|
|
||||||
```
|
|
||||||
|
|
||||||
## My first extension
|
## My first extension
|
||||||
|
|
||||||
|
* Enter folder `source`.
|
||||||
|
```
|
||||||
|
cd zaz/source
|
||||||
|
```
|
||||||
|
|
||||||
|
* Make new extension.
|
||||||
|
|
||||||
|
Replace `PATH` for your absolute path.
|
||||||
|
|
||||||
|
```
|
||||||
|
python zaz.py --new -t PATH -n my-great-extension
|
||||||
|
```
|
||||||
|
|
||||||
|
* For example:
|
||||||
|
```
|
||||||
|
python zaz.py --new -t /home/mau/ -n my-extension
|
||||||
|
07/11/2020 18:28:39 - INFO - Folders and files copy successfully for new extension.
|
||||||
|
07/11/2020 18:28:39 - INFO - Change to folder: /home/mau/my-extension
|
||||||
|
```
|
||||||
|
|
||||||
|
* Then change to new folder
|
||||||
|
```
|
||||||
|
cd /home/mau/my-extension
|
||||||
|
```
|
||||||
|
|
||||||
|
* Create
|
||||||
|
```
|
||||||
|
python zaz.py -c
|
||||||
|
|
||||||
|
07/11/2020 20:43:25 - INFO - Created directories...
|
||||||
|
07/11/2020 20:43:25 - INFO - Created files...
|
||||||
|
07/11/2020 20:43:25 - INFO - Don't forget generate DOMAIN.pot for locales
|
||||||
|
07/11/2020 20:43:25 - INFO - New extension: MyFirstExtension make sucesfully...
|
||||||
|
Now, you can install and test: zaz.py -i
|
||||||
|
```
|
||||||
|
|
||||||
|
* And install it
|
||||||
|
|
||||||
|
```
|
||||||
|
python zaz.py -i
|
||||||
|
|
||||||
|
07/11/2020 20:43:38 - INFO - Don't forget generate DOMAIN.pot for locales
|
||||||
|
07/11/2020 20:43:38 - INFO - Compress OXT extension...
|
||||||
|
07/11/2020 20:43:38 - INFO - Extension OXT created sucesfully...
|
||||||
|
Copying: MyFirstExtension_v0.1.0.oxt
|
||||||
|
|
||||||
|
unopkg done.
|
||||||
|
|
||||||
|
07/11/2020 20:43:40 - INFO - Install extension sucesfully...
|
||||||
|
07/11/2020 20:43:40 - INFO - Start LibreOffice...
|
||||||
|
07/11/2020 20:44:36 - INFO - Extension make successfully...
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
* [File conf.py](conf.py)
|
* [File conf.py](conf.py)
|
||||||
* [Library easymacro.py](easymacro)
|
* [Library easymacro.py](easymacro)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue