Skip to content

Commit

Permalink
updated updates
Browse files Browse the repository at this point in the history
  • Loading branch information
JiningLiu committed Nov 19, 2024
1 parent 6cc1243 commit a521e4f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
6 changes: 6 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a521e4f

Please sign in to comment.