Skip to content

Commit c78a09f

Browse files
committed
Fix | 3.0.9
1 parent 1946a06 commit c78a09f

File tree

4 files changed

+6
-50
lines changed

4 files changed

+6
-50
lines changed

ShadowPluginLoader.WinUI/AbstractPluginLoader.Install.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public async Task InstallAsync(IEnumerable<string> shadowFiles)
3434
foreach (var data in result)
3535
{
3636
session.Scan(new Uri(Path.Combine(BaseSdkConfig.PluginFolderPath,
37-
data.MetaData.DllName, "Assets", "plugin.json")));
37+
data.MetaData.DllName, data.MetaData.DllName, "plugin.json")));
3838
}
3939

4040
Load(await session.FinishAsync());

ShadowPluginLoader.WinUI/Extensions/PluginExtension.cs

Lines changed: 0 additions & 43 deletions
This file was deleted.

ShadowPluginLoader.WinUI/Scanners/PluginScanSession.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public IPluginScanSession<TAPlugin, TMeta> Scan(Type? type)
4646
{
4747
if (type is null) return this;
4848
var dir = type.Assembly.Location[..^".dll".Length];
49-
var metaPath = Path.Combine(dir, "Assets", "plugin.json");
49+
var metaPath = Path.Combine(dir, "plugin.json");
5050
Scan(new Uri(metaPath));
5151
return this;
5252
}
@@ -106,10 +106,9 @@ public IPluginScanSession<TAPlugin, TMeta> Scan(DirectoryInfo dir)
106106
return this;
107107
}
108108

109-
foreach (var assetDir in dir.EnumerateDirectories("Assets", SearchOption.AllDirectories))
109+
foreach (var pluginFile in dir.EnumerateFiles("plugin.json", SearchOption.AllDirectories))
110110
{
111-
var pluginPath = Path.Combine(assetDir.FullName, "plugin.json");
112-
if (File.Exists(pluginPath)) Scan(new Uri(pluginPath));
111+
Scan(new Uri(pluginFile.FullName));
113112
}
114113

115114
return this;

ShadowPluginLoader.WinUI/ShadowPluginLoader.WinUI.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1414
<LangVersion>12</LangVersion>
1515
<!-- Nuget -->
16-
<Version>3.0.7</Version>
16+
<Version>3.0.9</Version>
1717
<PackageId>ShadowPluginLoader.WinUI</PackageId>
1818
<Owner>kitUIN</Owner>
1919
<Authors>kitUIN</Authors>
@@ -43,7 +43,7 @@
4343
<PackageReference Include="ShadowPluginLoader.SourceGenerator" Version="3.0.7" />
4444
<PackageReference Include="ShadowObservableConfig.Yaml" Version="0.6.0" />
4545
<PackageReference Include="ShadowObservableConfig.Json" Version="0.6.0" />
46-
<PackageReference Include="ShadowPluginLoader.Tool" Version="3.0.6" />
46+
<PackageReference Include="ShadowPluginLoader.Tool" Version="3.0.11" />
4747
<PackageReference Include="NuGet.Versioning" Version="6.14.0" />
4848
<PackageReference Include="SharpCompress" Version="0.40.0" />
4949
</ItemGroup>

0 commit comments

Comments
 (0)