Compare commits
No commits in common. "fce78e0acbedbb7300e7fcaa3cbdf03ab714203a" and "597160faddd708aee72e24d1561b0e136b6eed53" have entirely different histories.
fce78e0acb
...
597160fadd
2
main.go
2
main.go
|
|
@ -6838,7 +6838,9 @@ 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)
|
||||
|
|
|
|||
|
|
@ -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[[:space:]]*=[[:space:]]*\"' "$PROJECT_ROOT/main.go" | head -1 | sed -E 's/.*\"([^\"]+)\".*/\1/')"
|
||||
APP_VERSION="$(grep -E 'appVersion\s*=\s*"' "$PROJECT_ROOT/main.go" | head -1 | sed -E 's/.*"([^"]+)".*/\1/')"
|
||||
[ -z "$APP_VERSION" ] && APP_VERSION="(version unknown)"
|
||||
|
||||
echo "════════════════════════════════════════════════════════════════"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user