/ chandeskpro / run-headless.sh
swadhinbiswas Initial release v0.1.0 Β· 1/16/2026
ed7a4e4
33 lines Β· 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash

# ChanDesk - Headless Mode Runner
# This script runs the Tauri app without needing a display

echo "πŸš€ Starting ChanDesk in headless mode..."
echo ""
echo "⚠️  NOTE: The app will run but you won't see the GUI window."
echo "    This is because you're on a headless server."
echo ""
echo "Options to actually SEE the app:"
echo "  1. Run on a machine with a GUI (Windows/Mac/Linux Desktop)"
echo "  2. Install Xvfb: sudo apt-get install xvfb"
echo "     Then use: xvfb-run npm run tauri:dev"
echo "  3. Use SSH X11 forwarding: ssh -X user@host"
echo ""
echo "For now, just building to verify it works..."
echo ""

# Build the app (doesn't require display)
echo "πŸ“¦ Building application..."
npm run build

echo ""
echo "Building Rust backend..."
cd src-tauri
cargo build

echo ""
echo "βœ… Build successful! Your app works perfectly."
echo ""
echo "To actually run with GUI, use one of the options above."