Wintergreen is now a plugin

This commit is contained in:
2023-05-02 23:19:43 -04:00
parent e0be332953
commit 9cfbe0aa01
11 changed files with 383 additions and 105 deletions

View File

@@ -1,14 +1,6 @@
#!/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/x.so $pluginInstallPath
}
. scripts/plugin.sh
echo "... installing X backend"
install x

View File

@@ -0,0 +1,7 @@
#!/bin/sh
. scripts/plugin.sh
echo "... installing Wintergreen theme"
install wintergreen
echo ".// done"

11
scripts/plugin.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/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/x.so $pluginInstallPath
}