[macos] migrate xcode
This commit is contained in:
parent
7a17aeebb3
commit
80ae1621be
|
|
@ -101,7 +101,7 @@ class DLServices {
|
|||
Future<void> 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();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import Cocoa
|
||||
import FlutterMacOS
|
||||
|
||||
@NSApplicationMain
|
||||
@main
|
||||
class AppDelegate: FlutterAppDelegate {
|
||||
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
|
||||
return true
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue