Bash · 1025 bytes Raw Blame History
1 #!/bin/bash
2
3 echo "========================================"
4 echo " FORTRESS File Manager "
5 echo " Written in Modern Fortran "
6 echo "========================================"
7 echo
8 echo "Features:"
9 echo " • Dual-pane interface (parent | current)"
10 echo " • Full keyboard navigation"
11 echo " • Directory traversal"
12 echo " • Clean, responsive display"
13 echo
14 echo "Controls:"
15 echo " ↑/↓ or j/k : Navigate files"
16 echo " → or l : Enter directory"
17 echo " ← or h : Go to parent"
18 echo " q : Quit"
19 echo
20 echo "Building FORTRESS..."
21 fpm build --flag "-O2" 2>&1 | grep -E "(done|error|Error|ERROR)" || true
22
23 # Find the built executable
24 FORTRESS_BIN=$(find ./build -name fortress -type f -path "*/app/*" 2>/dev/null | head -1)
25
26 if [ -n "$FORTRESS_BIN" ] && [ -f "$FORTRESS_BIN" ]; then
27 echo
28 echo "Starting FORTRESS..."
29 echo "===================="
30 $FORTRESS_BIN
31 else
32 echo "Build failed. Please run 'fpm build' to see full error messages."
33 exit 1
34 fi