diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..82f5c4d --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +.PHONY: build deploy clean start default + +default: start + +build: + npm run build + +deploy: build + scp -r dist kiosk: + +clean: + rm -rf dist + +start: deploy + # TODO: This doesn't kill weston nicely; I should handle that? Or background or something + ssh kiosk "pgrep -f 'python3 -m http.server' || python3 -m http.server --directory /home/chandler/dist 127.0.0.1:8000 &" + ssh kiosk "pkill -f 'weston --shell=kiosk-shell.so'" + ssh kiosk weston --shell=kiosk-shell.so -- firefox --kiosk localhost:8000 diff --git a/shell.nix b/shell.nix index 084bd66..9e2dbba 100644 --- a/shell.nix +++ b/shell.nix @@ -5,5 +5,6 @@ in pkgs.mkShellNoCC { packages = with pkgs; [ nodejs + gnumake ]; }