[macos] migrate xcode
This commit is contained in:
parent
7a17aeebb3
commit
80ae1621be
|
|
@ -101,7 +101,7 @@ class DLServices {
|
||||||
Future<void> checkFFmpeg() async {
|
Future<void> checkFFmpeg() async {
|
||||||
var result = await futureShell('ffmpeg -version');
|
var result = await futureShell('ffmpeg -version');
|
||||||
FileLogger().d('$result');
|
FileLogger().d('$result');
|
||||||
if (result && result.exitCode == 0) {
|
if (result != null && result.exitCode == 0) {
|
||||||
FileLogger().d('FFmpeg is already installed.');
|
FileLogger().d('FFmpeg is already installed.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -160,8 +160,8 @@ class DLServices {
|
||||||
var strType = convertedFormats.contains(video.format) ? 'tmp' : 'done';
|
var strType = convertedFormats.contains(video.format) ? 'tmp' : 'done';
|
||||||
var isAudio = audioFormats.contains(video.format);
|
var isAudio = audioFormats.contains(video.format);
|
||||||
var command =
|
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 shellLinesController = ShellLinesController();
|
||||||
var shellErrorController = ShellLinesController();
|
var shellErrorController = ShellLinesController();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import Cocoa
|
import Cocoa
|
||||||
import FlutterMacOS
|
import FlutterMacOS
|
||||||
|
|
||||||
@NSApplicationMain
|
@main
|
||||||
class AppDelegate: FlutterAppDelegate {
|
class AppDelegate: FlutterAppDelegate {
|
||||||
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
|
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
|
||||||
return true
|
return true
|
||||||
|
|
|
||||||
|
|
@ -854,10 +854,10 @@ packages:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: vm_service
|
name: vm_service
|
||||||
sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc
|
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "14.2.4"
|
version: "14.2.5"
|
||||||
web:
|
web:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue