Added scripts folder with three convenience scripts: • scripts/build.sh - Clean build with dependency verification • scripts/run.sh - Run application (auto-builds if needed) • scripts/alias.sh - Create 'VideoTools' command alias Usage: source scripts/alias.sh VideoTools # Run app VideoToolsRebuild # Force rebuild VideoToolsClean # Clean artifacts Fixed main.go DVD options: • Fixed callback ordering so updateDVDOptions is called on format selection • DVD aspect ratio selector now appears when DVD format is selected • DVD info display shows specs for NTSC and PAL formats • Works in both Simple and Advanced tabs DVD options are now fully functional in the UI.
33 lines
1.2 KiB
Bash
Executable File
33 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
# VideoTools Run Script
|
|
# Builds (if needed) and runs the application
|
|
|
|
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
BUILD_OUTPUT="$PROJECT_ROOT/VideoTools"
|
|
|
|
echo "════════════════════════════════════════════════════════════════"
|
|
echo " VideoTools - Run Script"
|
|
echo "════════════════════════════════════════════════════════════════"
|
|
echo ""
|
|
|
|
# Check if binary exists
|
|
if [ ! -f "$BUILD_OUTPUT" ]; then
|
|
echo "⚠️ Binary not found. Building..."
|
|
echo ""
|
|
bash "$PROJECT_ROOT/scripts/build.sh"
|
|
echo ""
|
|
fi
|
|
|
|
# Verify binary exists
|
|
if [ ! -f "$BUILD_OUTPUT" ]; then
|
|
echo "❌ ERROR: Build failed, cannot run."
|
|
exit 1
|
|
fi
|
|
|
|
echo "🚀 Starting VideoTools..."
|
|
echo "════════════════════════════════════════════════════════════════"
|
|
echo ""
|
|
|
|
# Run the application
|
|
"$BUILD_OUTPUT" "$@"
|