-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch_gui.sh
More file actions
executable file
·48 lines (40 loc) · 1.32 KB
/
launch_gui.sh
File metadata and controls
executable file
·48 lines (40 loc) · 1.32 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
# MythWeave GUI Launcher Script
# This script sets up the virtual environment and runs the GUI
echo "🎮 MythWeave GUI Launcher"
echo "========================="
# Check if we're in the right directory
if [ ! -f "run_gui.py" ]; then
echo "❌ Error: run_gui.py not found. Please run this script from the loreSystem directory."
exit 1
fi
# Check if virtual environment exists
if [ ! -d "venv" ]; then
echo "📦 Creating virtual environment..."
python3 -m venv venv
fi
# Activate virtual environment
echo "🔧 Activating virtual environment..."
source venv/bin/activate
# Check if PyQt6 is installed
if ! python3 -c "import PyQt6" 2>/dev/null; then
echo "📥 Installing PyQt6..."
pip install "PyQt6>=6.6.1"
fi
# Check if other dependencies are installed
if ! python3 -c "import pydantic" 2>/dev/null; then
echo "📥 Installing core dependencies..."
pip install "pydantic>=2.5.3" dataclasses-json
fi
# Run the GUI
echo "🚀 Starting MythWeave GUI..."
echo ""
echo "💡 Tips:"
echo " - Load sample data: Click 'Load' → Select examples/sample_lore.json"
echo " - Create worlds in the 'Worlds' tab"
echo " - Add characters with abilities in the 'Characters' tab"
echo " - Save your work with 'Save' or 'Save As'"
echo ""
echo "📚 For help, see QUICKSTART_GUI.md"
echo ""
python3 run_gui.py