diff --git a/packaging_apps.md b/packaging_apps.md index fa871470..02711f83 100644 --- a/packaging_apps.md +++ b/packaging_apps.md @@ -128,6 +128,7 @@ Since YunoHost has a unified architecture, you will be able to guess most of the **Note**: The arguments will be passed in the manifest's order to the script. For example for **roundcube**, the `domain` argument will be referenced as `$1` in the script, and `path` as `$2`. +
#### Helpers The CLI [moulinette](#/moulinette) provides a few tools to make the packager's work easier: @@ -168,4 +169,20 @@ sudo yunohost app ssowatconf ```
This helper reloads the SSO configuration. You have to call it at the end of the script when you are packaging a web app. -
\ No newline at end of file + + +
+#### Test it ! +In order to test your app package, you can execute your script standalone as `admin` (do not forget to append required arguments): +```bash +su - admin -c "/bin/bash /path/to/my/script my_arg1 my_arg2" +``` + +Or you can use the moulinette: +```bash +yunohost app install /path/to/my/app/package +``` +Note that it also works with a Git URL: +```bash +yunohost app install https://github.com/author/my_app_package.git +```