| index 800ccac..f5929a4 100644 | ||
| --- a/Makefile | ||
| +++ b/Makefile | ||
| @@ -65,10 +65,15 @@ tzdata: | ||
| 65 | 65 | ui: |
| 66 | 66 | 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 | 73 | test: plugin_time |
| 69 | 74 | sh tests/run.sh |
| 70 | 75 | |
| 71 | 76 | clean: |
| 72 | 77 | 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 clean | |
| 79 | +.PHONY: all musl arm64 win64 macos asan tzdata ui install test clean |
| index 9bf2406..22cb177 100644 | ||
| --- a/README.md | ||
| +++ b/README.md | ||
| @@ -16,6 +16,7 @@ make win64 # MinGW-w64 static PE -> ./plugin_time.exe | ||
| 16 | 16 | make macos # Apple clang (on macOS) -> ./plugin_time |
| 17 | 17 | make tzdata # regenerate src/tzdata.h from the host tz database |
| 18 | 18 | make ui # regenerate src/ui_html.h from src/ui.html |
| 19 | +make install # copy the binary into ~/.scorpiox/plugins (no restart needed) | |
| 19 | 20 | make test # offline suite (200+ assertions) |
| 20 | 21 | python3 tests/e2e.py # Playwright viewport suite (1440 / 1024 / 390, dark + light) |
| 21 | 22 | ``` |
| 22 | 23 |
| index 800ccac..f5929a4 100644 | index 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.py | 66 | 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_time | 73 | test: plugin_time |
| 69 | sh tests/run.sh | 74 | 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.asan | 77 | 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 clean | 79 | +.PHONY: all musl arm64 win64 macos asan tzdata ui install test clean |
| index 9bf2406..22cb177 100644 | index 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_time | 16 | make macos # Apple clang (on macOS) -> ./plugin_time |
| 17 | make tzdata # regenerate src/tzdata.h from the host tz database | 17 | make tzdata # regenerate src/tzdata.h from the host tz database |
| 18 | make ui # regenerate src/ui_html.h from src/ui.html | 18 | 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 | ``` |
| 22 | 23 |