From 052ae092bb6a538aa32a80ec15085ab3d35ba1c3 Mon Sep 17 00:00:00 2001 From: jscampucci Date: Tue, 9 Jul 2024 11:48:22 +0200 Subject: [PATCH] [desktop] dl linux macos --- lib/services/download.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/services/download.dart b/lib/services/download.dart index f261797..8b64058 100644 --- a/lib/services/download.dart +++ b/lib/services/download.dart @@ -36,7 +36,13 @@ class DLServices { Future _init() async { tempDir = await getTemporaryDirectory(); - assetName = 'yt-dlp.exe'; + if (Platform.isWindows) { + assetName = 'yt-dlp.exe'; + } else if (Platform.isLinux) { + assetName = 'yt-dlp_linux'; + } else if (Platform.isMacOS) { + assetName = 'yt-dlp_macos'; + } await copyExecutable(); }