internal void InitPlugin(PluginHolder pluginData) { _ExternalPluginData = pluginData; PluginDirectory = pluginData.PluginDirectory; LocalPluginDirectory = PluginDirectory.Substring(PluginDirectory.IndexOf($@"\{PluginExtensionPlugin.PluginsDirectory}\") + 1); DiagnosticTimer = new Stopwatch(); }
public void Update() { if (PluginDirectory.EndsWith(@"\")) { PluginDirectory = PluginDirectory.Substring(0, PluginDirectory.Length - 1); } CheckDownloadFolder(); Download(); UnZip(); StopService(); Deploy(); StartService(); }