mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-10 17:45:42 +00:00
956e30935b
Enable vendor-aware VA-API/GStreamer and WebView2 hardware decode for smoother remote video; fix Connect invoke, session back-to-close, and dashboard layout with collapsible device list and sidebar sections that scroll inside the window.
21 lines
446 B
Bash
Executable File
21 lines
446 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Full rebuild of RdClient desktop (no Cargo cache).
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
cd "$ROOT"
|
|
|
|
echo "==> Removing src-tauri/target (cargo cache)..."
|
|
rm -rf src-tauri/target
|
|
|
|
echo "==> npm install (if needed)..."
|
|
npm install
|
|
|
|
MODE="${1:-dev}"
|
|
if [[ "$MODE" == "build" ]]; then
|
|
echo "==> Production build (tauri build)..."
|
|
npm run build
|
|
else
|
|
echo "==> Dev run (tauri dev)..."
|
|
npm run dev
|
|
fi
|