build: make install, per the shared plugin-authoring workflow
The authoring skill's step 4 is build -> copy into the node's plugin dir -> verify --meta / 401 / discovery / JSON. Every plugin in the wave declares make all/musl/.../clean but not install, so that step has been a hand-typed cp each time. It honours the /workspace variant and needs no restart.
AuthorPico <picobot@scorpioplayer.com>
Date2026-11-14 03:19:33
Commite4278db7
Parentsa5fa38ca
Changed files
Makefile+6−1■■■■■
README.md+1−0■
2 files+7−1
Diff
Makefile+6−1■■■■■
index 800ccac..f5929a4 100644
--- a/Makefile
+++ b/Makefile
@@ -65,10 +65,15 @@ tzdata:
6565 ui:
6666 python3 tools/gen_ui.py
6767
68+install: plugin_time
69+ PDIR="/workspace/.scorpiox/plugins"; [ -d /workspace ] || PDIR="$$HOME/.scorpiox/plugins"; \
70+ mkdir -p "$$PDIR" && cp plugin_time "$$PDIR/plugin_time" && chmod 0755 "$$PDIR/plugin_time" && \
71+ echo "installed $$PDIR/plugin_time (no restart needed: the node rescans plugins per request)"
72+
6873 test: plugin_time
6974 sh tests/run.sh
7075
7176 clean:
7277 rm -f plugin_time plugin_time.musl plugin_time.arm64 plugin_time.exe plugin_time.asan
7378
74-.PHONY: all musl arm64 win64 macos asan tzdata ui test clean
79+.PHONY: all musl arm64 win64 macos asan tzdata ui install test clean
README.md+1−0■
index 9bf2406..22cb177 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,7 @@ make win64 # MinGW-w64 static PE -> ./plugin_time.exe
1616 make macos # Apple clang (on macOS) -> ./plugin_time
1717 make tzdata # regenerate src/tzdata.h from the host tz database
1818 make ui # regenerate src/ui_html.h from src/ui.html
19+make install # copy the binary into ~/.scorpiox/plugins (no restart needed)
1920 make test # offline suite (200+ assertions)
2021 python3 tests/e2e.py # Playwright viewport suite (1440 / 1024 / 390, dark + light)
2122 ```
2223
Makefile+6−1■■■■■
index 800ccac..f5929a4 100644index 800ccac..f5929a4 100644
--- a/Makefile--- a/Makefile
+++ b/Makefile+++ b/Makefile
@@ -65,10 +65,15 @@ tzdata:@@ -65,10 +65,15 @@ tzdata:
65 ui:65 ui:
66 python3 tools/gen_ui.py66 python3 tools/gen_ui.py
67 67
68+install: plugin_time
69+ PDIR="/workspace/.scorpiox/plugins"; [ -d /workspace ] || PDIR="$$HOME/.scorpiox/plugins"; \
70+ mkdir -p "$$PDIR" && cp plugin_time "$$PDIR/plugin_time" && chmod 0755 "$$PDIR/plugin_time" && \
71+ echo "installed $$PDIR/plugin_time (no restart needed: the node rescans plugins per request)"
72+
68 test: plugin_time73 test: plugin_time
69 sh tests/run.sh74 sh tests/run.sh
70 75
71 clean:76 clean:
72 rm -f plugin_time plugin_time.musl plugin_time.arm64 plugin_time.exe plugin_time.asan77 rm -f plugin_time plugin_time.musl plugin_time.arm64 plugin_time.exe plugin_time.asan
73 78
74-.PHONY: all musl arm64 win64 macos asan tzdata ui test clean79+.PHONY: all musl arm64 win64 macos asan tzdata ui install test clean
README.md+1−0■
index 9bf2406..22cb177 100644index 9bf2406..22cb177 100644
--- a/README.md--- a/README.md
+++ b/README.md+++ b/README.md
@@ -16,6 +16,7 @@ make win64 # MinGW-w64 static PE -> ./plugin_time.exe@@ -16,6 +16,7 @@ make win64 # MinGW-w64 static PE -> ./plugin_time.exe
16 make macos # Apple clang (on macOS) -> ./plugin_time16 make macos # Apple clang (on macOS) -> ./plugin_time
17 make tzdata # regenerate src/tzdata.h from the host tz database17 make tzdata # regenerate src/tzdata.h from the host tz database
18 make ui # regenerate src/ui_html.h from src/ui.html18 make ui # regenerate src/ui_html.h from src/ui.html
19+make install # copy the binary into ~/.scorpiox/plugins (no restart needed)
19 make test # offline suite (200+ assertions)20 make test # offline suite (200+ assertions)
20 python3 tests/e2e.py # Playwright viewport suite (1440 / 1024 / 390, dark + light)21 python3 tests/e2e.py # Playwright viewport suite (1440 / 1024 / 390, dark + light)
21 ```22 ```
2223