26 lines
641 B
Bash
Executable File
26 lines
641 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
pkill -f "web-tuner" 2>/dev/null || true
|
|
sleep 0.5
|
|
|
|
export CC=/usr/bin/clang
|
|
export CXX=/usr/bin/clang++
|
|
export SDKROOT=$(xcrun --show-sdk-path)
|
|
export CGO_ENABLED=1
|
|
export PATH="$HOME/go/bin:$PATH"
|
|
|
|
WAILS=$(command -v wails || echo "$HOME/go/bin/wails")
|
|
|
|
echo "Building web-tuner (DEBUG)..."
|
|
"$WAILS" build -skipbindings -tags debug
|
|
|
|
echo ""
|
|
echo "Debug build complete. Logs will be written to ~/web-tuner/debug.log"
|
|
echo "Launching..."
|
|
open build/bin/web-tuner.app
|
|
|
|
sleep 1
|
|
echo ""
|
|
echo "=== Tailing ~/web-tuner/debug.log (Ctrl-C to stop) ==="
|
|
tail -f ~/web-tuner/debug.log 2>/dev/null || echo "Waiting for log file..."
|