Delta Plugin Template

This repository is a template for Delta Client plugins.

To create a plugin, create a repo from this template repo and then replace all occurences of HelloWorldPlugin with the name of your plugin (should be a valid Swift type name). You can set a custom display name in manifest.json (the name field). The target field in manifest.json is the name of your plugin’s SwiftPM target (in this template it’s HelloWorldPlugin. Make sure to change the identifier in manifest.json to something unique as well.

Building

Prerequisites

  • Xcode 13 (or later)
  • jq (install with homebrew: brew install jq)

Setup

# Clones delta-client into the current directory
# You can also edit this script to clone a specific version of delta-client that you want to develop your plugin for
sh setup.sh

Build

# Build the plugin and output it into ./build
sh build.sh

Build and run

# 1. Builds the plugin into ./build
# 2. Builds the version of Delta Client in ./delta-client
# 3. Runs Delta Client with `--plugins-dir ./build`
sh build-and-run.sh

GitHub

View Github