From 80ae1621be5d477ef4450fd1af86439a5ac1cd65 Mon Sep 17 00:00:00 2001 From: macOsScaleway-vscode Date: Mon, 9 Sep 2024 13:32:00 +0200 Subject: [PATCH] [macos] migrate xcode --- assets/executable/yt-dlp_macos | Bin lib/services/download.dart | 6 +++--- macos/Runner/AppDelegate.swift | 2 +- pubspec.lock | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) mode change 100644 => 100755 assets/executable/yt-dlp_macos diff --git a/assets/executable/yt-dlp_macos b/assets/executable/yt-dlp_macos old mode 100644 new mode 100755 diff --git a/lib/services/download.dart b/lib/services/download.dart index d6604f8..48a7729 100644 --- a/lib/services/download.dart +++ b/lib/services/download.dart @@ -101,7 +101,7 @@ class DLServices { Future checkFFmpeg() async { var result = await futureShell('ffmpeg -version'); FileLogger().d('$result'); - if (result && result.exitCode == 0) { + if (result != null && result.exitCode == 0) { FileLogger().d('FFmpeg is already installed.'); return; } @@ -160,8 +160,8 @@ class DLServices { var strType = convertedFormats.contains(video.format) ? 'tmp' : 'done'; var isAudio = audioFormats.contains(video.format); var command = - '${video.url.trim()}${isAudio ? '' : '--sub-langs "all,-live_chat" --embed-subs --embed-thumbnail --embed-metadata'} --progress -o "${tempDir.path}/${video.filename}_$strType.%(ext)s" -f "$formatCmd"'; - + '${video.url.trim()}${isAudio ? '' : '--embed-subs --embed-thumbnail --embed-metadata'} --progress -o "${tempDir.path}/${video.filename}_$strType.%(ext)s" -f "$formatCmd"'; + //--sub-langs "all,-live_chat" var shellLinesController = ShellLinesController(); var shellErrorController = ShellLinesController(); diff --git a/macos/Runner/AppDelegate.swift b/macos/Runner/AppDelegate.swift index d53ef64..8e02df2 100644 --- a/macos/Runner/AppDelegate.swift +++ b/macos/Runner/AppDelegate.swift @@ -1,7 +1,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true diff --git a/pubspec.lock b/pubspec.lock index a92456a..d5c6930 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -854,10 +854,10 @@ packages: dependency: transitive description: name: vm_service - sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" url: "https://pub.dev" source: hosted - version: "14.2.4" + version: "14.2.5" web: dependency: transitive description: