35 lines
1 KiB
C#
35 lines
1 KiB
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace TwitchArchive.Core.Config
|
|
{
|
|
public static class ToolPathResolver
|
|
{
|
|
public static string DefaultStreamlinkPath()
|
|
{
|
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
|
return "streamlink.exe";
|
|
return "/usr/local/bin/streamlink";
|
|
}
|
|
|
|
public static string DefaultFfmpegPath()
|
|
{
|
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
|
return "ffmpeg.exe";
|
|
return "/usr/bin/ffmpeg";
|
|
}
|
|
|
|
public static string DefaultTwitchDownloaderPath()
|
|
{
|
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
|
return "TwitchDownloaderCLI.exe";
|
|
return "/app/bin/TwitchDownloaderCLI";
|
|
}
|
|
|
|
public static string DefaultRclonePath()
|
|
{
|
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
|
return "rclone.exe";
|
|
return "/usr/bin/rclone";
|
|
}
|
|
}
|
|
}
|