Skip to content

Commit

Permalink
fix akarin
Browse files Browse the repository at this point in the history
  • Loading branch information
the-database committed Jul 28, 2024
1 parent c27000c commit 5cbf548
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion BuildMpvUpscale2xAnimeJaNai/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async Task InstallPythonDependencies()

async Task InstallPythonVapourSynthPlugins()
{
string[] dependencies = { "ffms2", "akarin" };
string[] dependencies = { "ffms2" };

var cmd = $@".\python.exe vsrepo.py -p update && .\python.exe vsrepo.py -p install {string.Join(" ", dependencies)}";

Expand Down Expand Up @@ -120,6 +120,27 @@ await Downloader.DownloadFileAsync(downloadUrl, targetPath, (progress) =>
File.Delete(targetPath);
}

async Task InstallVapourSynthAkarin()
{
Console.WriteLine("Downloading VapourSynth Akarin...");
var downloadUrl = "https://github.com/AkarinVS/vapoursynth-plugin/releases/download/v0.96/akarin-release-lexpr-amd64-v0.96g3.7z";
var targetPath = Path.GetFullPath("akarin.7z");
await Downloader.DownloadFileAsync(downloadUrl, targetPath, (progress) =>
{
Console.WriteLine($"Downloading VapourSynth Akarin ({progress}%)...");
});

Console.WriteLine("Extracting VapourSynth Akarin...");
var targetExtractPath = Path.Combine(vapourSynthPluginsPath);
Directory.CreateDirectory(targetExtractPath);

using (ArchiveFile archiveFile = new(targetPath))
{
archiveFile.Extract(targetExtractPath);
}
File.Delete(targetPath);
}

async Task InstallVsmlrt()
{
Console.WriteLine("Downloading vs-mlrt...");
Expand Down Expand Up @@ -377,6 +398,7 @@ async Task Main()
await InstallPythonDependencies();
await InstallPythonVapourSynthPlugins();
await InstallVapourSynthMiscFilters();
await InstallVapourSynthAkarin();
await InstallVsmlrt();
await InstallRife();
await InstallMpvnet();
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 5cbf548

Please sign in to comment.