mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
fix: don't create plugin output dir before downloading
This commit is contained in:
parent
0c52f8099e
commit
66daa03da3
1 changed files with 4 additions and 4 deletions
|
|
@ -394,6 +394,10 @@ namespace Dalamud.Plugin.Internal
|
|||
var downloadUrl = useTesting ? repoManifest.DownloadLinkTesting : repoManifest.DownloadLinkInstall;
|
||||
var version = useTesting ? repoManifest.TestingAssemblyVersion : repoManifest.AssemblyVersion;
|
||||
|
||||
using var client = new HttpClient();
|
||||
var response = await client.GetAsync(downloadUrl);
|
||||
response.EnsureSuccessStatusCode();
|
||||
|
||||
var outputDir = new DirectoryInfo(Path.Combine(this.pluginDirectory.FullName, repoManifest.InternalName, version.ToString()));
|
||||
|
||||
try
|
||||
|
|
@ -408,10 +412,6 @@ namespace Dalamud.Plugin.Internal
|
|||
// ignored, since the plugin may be loaded already
|
||||
}
|
||||
|
||||
using var client = new HttpClient();
|
||||
var response = await client.GetAsync(downloadUrl);
|
||||
response.EnsureSuccessStatusCode();
|
||||
|
||||
Log.Debug($"Extracting to {outputDir}");
|
||||
// This throws an error, even with overwrite=false
|
||||
// ZipFile.ExtractToDirectory(tempZip.FullName, outputDir.FullName, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue