Files
se-launcher/CringePlugins/Config/PackagesConfig.cs
pas2704 fb75897810
All checks were successful
Build / Compute Version (push) Successful in 7s
Build / Build Nuget package (NuGet) (push) Successful in 4m9s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 4m22s
Build / Build Nuget package (SharedCringe) (push) Successful in 4m18s
Build / Build Nuget package (CringePlugins) (push) Successful in 4m42s
Build / Build Launcher (push) Successful in 5m29s
Fix notifications display
Rename default source
Remove plugins that aren't found (404)
Fix duplicate ids in plugins list
2025-06-08 01:34:13 -04:00

18 lines
784 B
C#

using System.Collections.Immutable;
using CringePlugins.Resolver;
using NuGet;
namespace CringePlugins.Config;
public record PackagesConfig(ImmutableArray<PackageSource> Sources, ImmutableArray<PackageReference> Packages, ImmutableArray<Profile> Profiles)
{
public static PackagesConfig Default { get; } = new([
new("CringeLauncher Official", @"^SpaceEngineersDedicated\.ReferenceAssemblies$|^ImGui\.NET\.DirectX$|^NuGet$|^Cringe.+$|^SharedCringe$|^Plugin.+$", "https://ng.zznty.ru/v3/index.json"),
new("nuget.org", string.Empty, "https://api.nuget.org/v3/index.json")
],
[
new PackageReference("Plugin.ClientModLoader", new(new(0,0,0)))
],
[]);
}
public record Profile(string Id, ImmutableArray<PackageReference> Plugins);