1
0
Fork 0
mirror of https://github.com/YunoHost/doc.git synced 2024-09-03 20:06:26 +02:00

Update packaging_apps.md

This commit is contained in:
opi@no-log.org 2014-11-04 09:39:30 +01:00 committed by YunoHost
parent 86902b741d
commit e4f5604709

View file

@ -3,12 +3,14 @@
There are few things you need to know if you want to package an application for YunoHost. There are few things you need to know if you want to package an application for YunoHost.
### Content ### Content
A YunoHost package looks like [this](https://github.com/Kloadut/roundcube_ynh), and is composed of: A YunoHost package is composed of:
* A JSON file `manifest.json` * A JSON file `manifest.json`
* A `scripts` directory, which contains the `install`, `remove` and `upgrade` scripts * A `scripts` directory, which contains the `install`, `remove` and `upgrade` scripts
* Optional other directories, like `sources` or `conf` if you need them * Optional other directories, like `sources` or `conf` if you need them
An example package is available here : https://github.com/opi/example_ynh, feel free to use it as a framework.
### Manifest ### Manifest
The `manifest.json` file defines the app's constants, a bunch of values that YunoHost needs to identify the app and install it correctly. It looks like this : The `manifest.json` file defines the app's constants, a bunch of values that YunoHost needs to identify the app and install it correctly. It looks like this :