-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·41 lines (32 loc) · 863 Bytes
/
start.sh
File metadata and controls
executable file
·41 lines (32 loc) · 863 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
34
35
36
37
38
39
40
41
#!/bin/bash
# Quick start script for Stratum V2 JDC
set -e
echo "🚀 Stratum V2 Job Declarator Client - Quick Start"
echo "=================================================="
echo ""
# Check if config exists
if [ ! -f "config.toml" ]; then
echo " config.toml not found!"
echo "Please copy config.toml.example and edit it with your settings."
exit 1
fi
# Check if Rust is installed
if ! command -v cargo &> /dev/null; then
echo " Rust is not installed!"
echo "Install from: https://rustup.rs/"
exit 1
fi
echo "✓ Configuration found"
echo "✓ Rust toolchain detected"
echo ""
# Build the project
echo "📦 Building project (this may take a few minutes)..."
cargo build --release
echo ""
echo "✅ Build complete!"
echo ""
echo "Starting JDC..."
echo "Press 'q' or ESC to quit"
echo ""
# Run the application
cargo run --release