[macos] migrate xcode

This commit is contained in:
macOsScaleway-vscode 2024-09-09 13:32:00 +02:00 committed by jscampucci
parent 7a17aeebb3
commit 80ae1621be
4 changed files with 6 additions and 6 deletions

0
assets/executable/yt-dlp_macos Normal file → Executable file
View File

View File

@ -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();

View File

@ -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

View File

@ -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: