How to build with native plugins

Viewed 246

I imported the plugin into the /ui/src/plugins folder,and executed

make ui  
make build

But it doesn't show up in the background

image.png

1 Answers

Packaging a plugin is not the same as developing a plugin. To introduce a plugin during debugging, we usually put the plugin in the /ui/src/plugins directory, which is not necessary when packaging it.

For more steps in the documentation you can do this.

First, build a basic answer binary using your local code.

make build

Second, package your local plugin into a new answer binary using the answer build --with local command.

image.png

eg:
image.png

third, Run ./new_answer plugin command to see if the plug-in is packaged.

image.png

Finally, run the binary locally to see if the plugin is packaged correctly. Note that ./answer needs to be replaced with the packaged ./new_answer. For more usage, please refer to the installation documentation

image.png

Result:
image.png