This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
tomo-old/scripts/plugin.sh
2023-05-03 15:40:40 -04:00

12 lines
225 B
Bash

#!/bin/sh
pluginInstallPath="$HOME/.local/lib/nasin/plugins"
mkdir -p build
mkdir -p "$pluginInstallPath"
install() {
go build -buildmode=plugin -o "build/$1.so" "./plugins/$1" && \
cp "build/$1.so" $pluginInstallPath
}