From a521e4fd4de918aad044138ae68ac10824218326 Mon Sep 17 00:00:00 2001 From: Jining Liu Date: Tue, 19 Nov 2024 17:39:13 -0600 Subject: [PATCH] updated updates --- README.md | 14 ++++++++++++-- update.sh | 6 ++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 543b5e7..a90fd78 100644 --- a/README.md +++ b/README.md @@ -59,9 +59,10 @@ source ~/.bashrc nvm install --lts -echo "alias serve='cd stream-cam-web && npm run dev & node ~/stream-cam/server/index.js'" >> ~/.bashrc +echo "alias serve='cd ~/stream-cam-web && npm run preview & cd ~/stream-overlays && bun run preview & node ~/stream-cam/server/index.js'" >> ~/.bashrc echo "alias cam='~/stream-cam/mediamtx'" >> ~/.bashrc -echo "alias web='cd stream-cam-web && npm run dev'" >> ~/.bashrc +echo "alias web='cd stream-cam-web && npm run preview'" >> ~/.bashrc +echo "alias overlays='cd stream-overlays && bun run preview'" >> ~/.bashrc echo "alias stop='killall node & killall vite & killall mediamtx'" >> ~/.bashrc echo "alias update='~/stream-cam/update.sh'" >> ~/.bashrc source ~/.bashrc @@ -78,6 +79,15 @@ cd ~/ git clone https://github.com/JiningLiu/stream-cam-web/ cd stream-cam-web npm i +npm run build + +npm install -g bun + +cd ~/ +git clone https://github.com/JiningLiu/stream-overlays/ +cd stream-overlays +bun i +bun run build echo "serve" >> ~/.bashrc diff --git a/update.sh b/update.sh index 363bc29..55c6273 100644 --- a/update.sh +++ b/update.sh @@ -1,10 +1,16 @@ #!/bin/bash stop & sleep 1s +cd ~/stream-overlays/ +git reset --hard +git pull +bun i +bun run build cd ~/stream-cam-web/ git reset --hard git pull npm i +npm run build cd ~/stream-cam/ git reset --hard git pull