Add bash script to pull the latest version of desktop client and run
This commit is contained in:
13
README.md
13
README.md
@@ -57,6 +57,19 @@ uv run main.py
|
||||
|
||||
You can also build a standalone executable for the desktop app using the provided `build.ps1` script (requires PyInstaller).
|
||||
|
||||
### Quick Run on Linux
|
||||
|
||||
If you just want to run the desktop client without cloning the repo manually, use the launcher script. Prerequisites: `git` and [`uv`](https://docs.astral.sh/uv/).
|
||||
|
||||
```bash
|
||||
# Download the script
|
||||
curl -fsSL https://gitea.peterstockings.com/peterstockings/video-sync/raw/branch/master/desktop-client/run-videosync.sh -o run-videosync.sh
|
||||
chmod +x run-videosync.sh
|
||||
|
||||
# Run (clones on first launch, pulls updates on subsequent runs)
|
||||
./run-videosync.sh
|
||||
```
|
||||
|
||||
## Deployment
|
||||
|
||||
```bash
|
||||
|
||||
25
desktop-client/run-videosync.sh
Normal file
25
desktop-client/run-videosync.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
# VideoSync Desktop Client Launcher
|
||||
# Fetches the latest version from the repo and runs the desktop client.
|
||||
# Prerequisites: git, uv
|
||||
|
||||
set -e
|
||||
|
||||
REPO_URL="https://gitea.peterstockings.com/peterstockings/video-sync.git"
|
||||
INSTALL_DIR="$HOME/.videosync"
|
||||
|
||||
echo "🎬 VideoSync Desktop Client Launcher"
|
||||
echo "======================================"
|
||||
|
||||
# Clone or pull the latest version
|
||||
if [ -d "$INSTALL_DIR" ]; then
|
||||
echo "📥 Pulling latest changes..."
|
||||
git -C "$INSTALL_DIR" pull --ff-only
|
||||
else
|
||||
echo "📥 Cloning repository..."
|
||||
git clone "$REPO_URL" "$INSTALL_DIR"
|
||||
fi
|
||||
|
||||
echo "🚀 Launching VideoSync..."
|
||||
cd "$INSTALL_DIR/desktop-client"
|
||||
uv run main.py
|
||||
Reference in New Issue
Block a user