[desktop] dl linux macos
This commit is contained in:
parent
c693d5ce94
commit
052ae092bb
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue