VT_Player/scripts/alias.sh
Stu Leak ce60508480 Add build/run scripts and fix DVD options visibility
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.
2025-11-29 19:53:47 -05:00

37 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
# VideoTools Convenience Script
# Source this file in your shell to add the 'VideoTools' command
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
# Create alias and function for VideoTools
alias VideoTools="bash $PROJECT_ROOT/scripts/run.sh"
# Also create a rebuild function for quick rebuilds
VideoToolsRebuild() {
echo "🔨 Rebuilding VideoTools..."
bash "$PROJECT_ROOT/scripts/build.sh"
}
# Create a clean function
VideoToolsClean() {
echo "🧹 Cleaning VideoTools build artifacts..."
cd "$PROJECT_ROOT"
go clean -cache -modcache -testcache
rm -f "$PROJECT_ROOT/VideoTools"
echo "✓ Clean complete"
}
echo "════════════════════════════════════════════════════════════════"
echo "✅ VideoTools Commands Available"
echo "════════════════════════════════════════════════════════════════"
echo ""
echo "Commands:"
echo " VideoTools - Run VideoTools (auto-builds if needed)"
echo " VideoToolsRebuild - Force rebuild of VideoTools"
echo " VideoToolsClean - Clean build artifacts and cache"
echo ""
echo "To make these permanent, add this line to your ~/.bashrc or ~/.zshrc:"
echo " source $PROJECT_ROOT/scripts/alias.sh"
echo ""