Skip to content

Publishing Official Plugins

Federico Conticello edited this page Mar 24, 2026 · 1 revision

Publishing Official Plugins

Official plugins are cryptographically signed and distributed through the ferrispad-plugins repository.

Prerequisites

  • Access to the ferrispad-plugins repository
  • The signing key at ~/.config/ferrispad/signing/plugin_signing_key.bin
  • The signer tool built: tools/signer/target/release/plugin-signer

Steps

1. Develop the Plugin

Create the plugin in the ferrispad-plugins repository under its own directory:

ferrispad-plugins/
  my-plugin/
    init.lua
    plugin.toml
    CHANGELOG.md
    README.md

2. Update Documentation

  • CHANGELOG.md — add a new version section
  • README.md — update features, version number, config table

3. Copy to Install Location

cp -r my-plugin/ ~/.config/ferrispad/plugins/

Test the plugin locally in FerrisPad.

4. Sign the Plugin

From the ferrispad-plugins repo root:

./tools/signer/target/release/plugin-signer sign my-plugin

This outputs the checksums and a base64 signature.

5. Update plugins.json

Update the plugin entry in plugins.json:

{
    "name": "My Plugin",
    "dir_name": "my-plugin",
    "version": "1.0.0",
    "description": "What it does",
    "checksums": {
        "init.lua": "sha256:abc123...",
        "plugin.toml": "sha256:def456..."
    },
    "signature": "base64-signature-here"
}

6. Verify

./tools/signer/target/release/plugin-signer verify my-plugin "BASE64_SIGNATURE"

7. Commit and Push

Commit all changes to the ferrispad-plugins repository and push.

Important Notes

  • The signature covers: init.lua checksum + plugin.toml checksum + version
  • Any change to init.lua or plugin.toml invalidates the signature — always re-sign after edits
  • Always edit in the source repo first, then copy to ~/.config/ferrispad/plugins/ for testing

Clone this wiki locally