[desktop] dl linux macos
This commit is contained in:
parent
c693d5ce94
commit
052ae092bb
|
|
@ -36,7 +36,13 @@ class DLServices {
|
||||||
|
|
||||||
Future<void> _init() async {
|
Future<void> _init() async {
|
||||||
tempDir = await getTemporaryDirectory();
|
tempDir = await getTemporaryDirectory();
|
||||||
|
if (Platform.isWindows) {
|
||||||
assetName = 'yt-dlp.exe';
|
assetName = 'yt-dlp.exe';
|
||||||
|
} else if (Platform.isLinux) {
|
||||||
|
assetName = 'yt-dlp_linux';
|
||||||
|
} else if (Platform.isMacOS) {
|
||||||
|
assetName = 'yt-dlp_macos';
|
||||||
|
}
|
||||||
await copyExecutable();
|
await copyExecutable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue