Add Makefile
This commit is contained in:
parent
1e58dd5c6f
commit
f9435c3a21
2 changed files with 19 additions and 0 deletions
18
Makefile
Normal file
18
Makefile
Normal file
|
|
@ -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
|
||||||
|
|
@ -5,5 +5,6 @@ in
|
||||||
pkgs.mkShellNoCC {
|
pkgs.mkShellNoCC {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
nodejs
|
nodejs
|
||||||
|
gnumake
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue