-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_linux.sh
More file actions
executable file
·41 lines (36 loc) · 1.3 KB
/
build_linux.sh
File metadata and controls
executable file
·41 lines (36 loc) · 1.3 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
#!/bin/bash
# Build script for Linux
echo "╔════════════════════════════════════════════╗"
echo "║ Building Paddle Decoder for Linux ║"
echo "╚════════════════════════════════════════════╝"
echo ""
# Check Rust
if ! command -v cargo &> /dev/null; then
echo "❌ Rust not found!"
echo " Install from: https://rustup.rs"
exit 1
fi
echo "✓ Rust found: $(rustc --version)"
echo ""
# Build
echo "Building release version..."
echo ""
cargo build --release
if [ $? -eq 0 ]; then
echo ""
echo "╔════════════════════════════════════════════╗"
echo "║ ✅ Build successful! ║"
echo "╚════════════════════════════════════════════╝"
echo ""
echo "Binary location: target/release/paddle_decoder"
echo ""
echo "To run:"
echo " cargo run --release"
echo " OR"
echo " ./target/release/paddle_decoder"
echo ""
else
echo ""
echo "❌ Build failed!"
exit 1
fi