Compare commits

...

2 Commits

2 changed files with 1 additions and 3 deletions

View File

@ -6838,9 +6838,7 @@ func buildCompareView(state *appState) fyne.CanvasObject {
// Helper function to format metadata
formatMetadata := func(src *videoSource) string {
fileSize := "Unknown"
origBytes := int64(0) // reserved for future reduction calc
if fi, err := os.Stat(src.Path); err == nil {
origBytes = fi.Size()
sizeMB := float64(fi.Size()) / (1024 * 1024)
if sizeMB >= 1024 {
fileSize = fmt.Sprintf("%.2f GB", sizeMB/1024)

View File

@ -6,7 +6,7 @@ PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Extract app version from main.go
APP_VERSION="$(grep -E 'appVersion\s*=\s*"' "$PROJECT_ROOT/main.go" | head -1 | sed -E 's/.*"([^"]+)".*/\1/')"
APP_VERSION="$(grep -E 'appVersion[[:space:]]*=[[:space:]]*\"' "$PROJECT_ROOT/main.go" | head -1 | sed -E 's/.*\"([^\"]+)\".*/\1/')"
[ -z "$APP_VERSION" ] && APP_VERSION="(version unknown)"
echo "════════════════════════════════════════════════════════════════"