[desktop] dl linux macos

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

View File

@ -36,7 +36,13 @@ class DLServices {
Future<void> _init() async { Future<void> _init() async {
tempDir = await getTemporaryDirectory(); 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(); await copyExecutable();
} }