diff --git a/README.md b/README.md index edda4aa..678b3e1 100644 --- a/README.md +++ b/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 diff --git a/desktop-client/run-videosync.sh b/desktop-client/run-videosync.sh new file mode 100644 index 0000000..5cb4dcb --- /dev/null +++ b/desktop-client/run-videosync.sh @@ -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