[desktop] dl linux macos

This commit is contained in:
jscampucci 2024-07-09 11:48:22 +02:00
parent c693d5ce94
commit 052ae092bb
1 changed files with 7 additions and 1 deletions

View File

@ -36,7 +36,13 @@ class DLServices {
Future<void> _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();
}