chore:added build plugins script
This commit is contained in:
32
build-plugins.sh
Executable file
32
build-plugins.sh
Executable file
@@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Create plugins directory
|
||||||
|
mkdir -p plugins
|
||||||
|
|
||||||
|
# Build each plugin as a shared library
|
||||||
|
echo "Building plugins..."
|
||||||
|
|
||||||
|
plugins=(
|
||||||
|
"cache"
|
||||||
|
"decrypter"
|
||||||
|
"encrypter"
|
||||||
|
"keymanager"
|
||||||
|
"publisher"
|
||||||
|
"reqpreprocessor"
|
||||||
|
"router"
|
||||||
|
"schemavalidator"
|
||||||
|
"signer"
|
||||||
|
"signvalidator"
|
||||||
|
)
|
||||||
|
|
||||||
|
for plugin in "${plugins[@]}"; do
|
||||||
|
echo "Building $plugin plugin..."
|
||||||
|
go build -buildmode=plugin -o "plugins/${plugin}.so" "./pkg/plugin/implementation/${plugin}/cmd/plugin.go"
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "✓ Successfully built $plugin plugin"
|
||||||
|
else
|
||||||
|
echo "✗ Failed to build $plugin plugin"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "All plugins built in ./plugins directory"
|
||||||
Reference in New Issue
Block a user