From 3630ad1fe4281f0f190c1931ab0d6a9ab863d232 Mon Sep 17 00:00:00 2001 From: Raymond Date: Sun, 26 Sep 2021 09:05:17 -0400 Subject: [PATCH] Save repo manifest before continuing --- Dalamud/Plugin/Internal/PluginManager.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dalamud/Plugin/Internal/PluginManager.cs b/Dalamud/Plugin/Internal/PluginManager.cs index 54966765a..9e8292320 100644 --- a/Dalamud/Plugin/Internal/PluginManager.cs +++ b/Dalamud/Plugin/Internal/PluginManager.cs @@ -475,6 +475,9 @@ namespace Dalamud.Plugin.Internal var dllFile = LocalPluginManifest.GetPluginFile(outputDir, repoManifest); var manifestFile = LocalPluginManifest.GetManifestFile(dllFile); + // We need to save the repoManifest due to how the repo fills in some fields that authors are not expected to use. + File.WriteAllText(manifestFile.FullName, JsonConvert.SerializeObject(repoManifest, Formatting.Indented)); + // Reload as a local manifest, add some attributes, and save again. var manifest = LocalPluginManifest.Load(manifestFile);