mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 05:11:10 +00:00
Adds bundled plugin trust and cross-platform native deployment
- embeds the append-only historical and deny trust lists in the API and marks matching bundled plugins as Official without blocking loading - builds and records the current plugin manifest only for official release builds - deploys the PDF native libraries for the supported Linux, macOS and Windows runtimes from the plugin dependency manifest - records release hashes by appending only missing entries to master's manifest and rejects any diff that removes a line - documents the release flow, the supported runtimes and the plugin installer limits
This commit is contained in:
1 parent
3fb8912c7f
commit
b30cbd6b9e
114 files changed
+2708
-243
No files matched your search
+15
-1
@@ -26,7 +26,7 @@ public class PluginEntityMappingTests
|
||||
IReadOnlyDictionary<string, string>? expectedSettings = JsonSerializer.Deserialize<Dictionary<string, string>>(entity.SettingsJson!);
|
||||
|
||||
// Act
|
||||
PluginResponse result = entity.ToResponse();
|
||||
PluginResponse result = entity.ToResponse(isOfficial: true);
|
||||
|
||||
// Assert
|
||||
Assert.NotNull(result);
|
||||
@@ -38,6 +38,20 @@ public class PluginEntityMappingTests
|
||||
Assert.Equal(entity.LoadStatus, result.LoadStatus);
|
||||
Assert.Equal(entity.LoadError, result.LoadError);
|
||||
Assert.Equal(expectedSettings, result.Settings);
|
||||
Assert.True(result.IsOfficial);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ToResponse_WhenPluginIsNotOfficial_ShouldSetIsOfficialFalse()
|
||||
{
|
||||
// Arrange
|
||||
PluginEntity entity = _pluginEntityFixture.Create();
|
||||
|
||||
// Act
|
||||
PluginResponse result = entity.ToResponse(isOfficial: false);
|
||||
|
||||
// Assert
|
||||
Assert.False(result.IsOfficial);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in new issue
Block a user