From 6bff3a626182e7726c2d5cc2698563f1f66f4da3 Mon Sep 17 00:00:00 2001 From: Abheek D <67982792+ADawesomeguy@users.noreply.github.com> Date: Wed, 20 Oct 2021 11:13:36 -0500 Subject: [PATCH] Remove "get-dependencies" command --- UsmToolkit/Commands.cs | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/UsmToolkit/Commands.cs b/UsmToolkit/Commands.cs index da0dc64..5f6e5e0 100644 --- a/UsmToolkit/Commands.cs +++ b/UsmToolkit/Commands.cs @@ -138,37 +138,4 @@ namespace UsmToolkit } } } - - [Command(Description = "Setup ffmpeg and vgmstream needed for conversion")] - public class GetDependenciesCommand - { - protected int OnExecute(CommandLineApplication app) - { - DepsConfig conf = JsonConvert.DeserializeObject(File.ReadAllText("deps.json")); - WebClient client = new WebClient(); - - Console.WriteLine($"Downloading ffmpeg from {conf.FFmpeg}"); - client.DownloadFile(conf.FFmpeg, "ffmpeg.zip"); - - Console.WriteLine($"Extracting ffmpeg..."); - using (ZipArchive archive = ZipFile.OpenRead("ffmpeg.zip")) - { - var ent = archive.Entries.FirstOrDefault(x => x.Name == "ffmpeg.exe"); - if (ent != null) - { - ent.ExtractToFile("ffmpeg.exe", true); - } - } - File.Delete("ffmpeg.zip"); - - Console.WriteLine($"Downloading vgmstream from {conf.Vgmstream}"); - client.DownloadFile(conf.Vgmstream, "vgmstream.zip"); - - Console.WriteLine("Extracting vgmstream..."); - ZipFile.ExtractToDirectory("vgmstream.zip", "vgmstream", true); - File.Delete("vgmstream.zip"); - - return 0; - } - } }