Write an extension

An extension is a signed package yapuka-app-<id>. It lives in apps/<id>/: an app.json and a root/ folder whose contents are installed under /.


{
  "id": "video",
  "name": "Ma vidéo",
  "summary": "Crée une petite vidéo avec tes photos.",
  "description": "Longer French text for the Extensions page.",
  "version": "0.1.0",
  "group": "creation",
  "command": "yapuka-video",
  "icon": "/usr/local/share/yapuka/icons/video.svg",
  "depends": ["chromium", "ffmpeg"],
  "size_hint": "≈ 350 Mo",
  "parents": "ask"
}

Required: id, name, summary, description, version, group (creation, medias or systeme), command, icon (a file inside root/). Optional: depends, size_hint, parents (default ask), license (default GPL-3.0-or-later). parents: allow (never blocked) or ask (needs the parent code in safe mode).

The program the dock tile runs must be in root/usr/local/bin/: Parent mode blocks an app by removing the execute bit of /usr/local/bin/<command>.

Publish with tools/publish.sh --app <id>: it builds and signs yapuka-app-<id>-<version>-r0.apk, re-indexes the repository and rewrites the signed catalogue apps.json + apps.json.sig. Bump version to ship a change.

Installing goes through the narrow root helper yapuka-apps-root install|remove <id>, which only accepts an id present in the signed catalogue. The package also installs a tile in /usr/local/share/yapuka/dock.d/<id>.json and a copy of app.json in apps.d/; removing the package removes the tile.

Rules: each extension carries a --self-test; the UI is French, « tu », fits 1366 × 768.

Updated on