Initial commit: Brass & Sigil monorepo
Self-hosted Minecraft modpack distribution + administration system.
- launcher/ Avalonia 12 desktop client; single-file win-x64 publish.
Microsoft auth via XboxAuthNet, manifest+SHA-1 mod sync,
portable install path, sidecar settings.
- server/ brass-sigil-server daemon (.NET 8, linux-x64). Wraps the
MC subprocess, embedded Kestrel admin panel with cookie
auth + rate limiting, RCON bridge, scheduled backups,
BlueMap CLI integration with player markers + skin proxy,
friend-side whitelist request flow, world wipe with seed
selection (keep current / random / custom).
- pack/ pack.lock.json (Modrinth + manual CurseForge entries),
data-only tweak source under tweaks/, build outputs in
overrides/ (gitignored).
- scripts/ Build-Pack / Build-Tweaks / Update-Pack / Check-Updates
plus Deploy-Brass.ps1 unified one-shot deploy with
version-bump pre-flight and daemon-state detection.
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace BrassAndSigil.Server.Models;
|
||||
|
||||
public sealed class Manifest
|
||||
{
|
||||
[JsonPropertyName("name")]
|
||||
public string? Name { get; set; }
|
||||
|
||||
[JsonPropertyName("version")]
|
||||
public string? Version { get; set; }
|
||||
|
||||
[JsonPropertyName("minecraft")]
|
||||
public MinecraftSpec Minecraft { get; set; } = new();
|
||||
|
||||
[JsonPropertyName("loader")]
|
||||
public LoaderSpec? Loader { get; set; }
|
||||
|
||||
[JsonPropertyName("files")]
|
||||
public List<ManifestFile> Files { get; set; } = new();
|
||||
}
|
||||
|
||||
public sealed class MinecraftSpec
|
||||
{
|
||||
[JsonPropertyName("version")] public string Version { get; set; } = "";
|
||||
}
|
||||
|
||||
public sealed class LoaderSpec
|
||||
{
|
||||
[JsonPropertyName("type")] public string Type { get; set; } = "vanilla";
|
||||
[JsonPropertyName("version")] public string Version { get; set; } = "";
|
||||
}
|
||||
|
||||
public sealed class ManifestFile
|
||||
{
|
||||
[JsonPropertyName("path")] public string Path { get; set; } = "";
|
||||
[JsonPropertyName("url")] public string Url { get; set; } = "";
|
||||
[JsonPropertyName("sha1")] public string? Sha1 { get; set; }
|
||||
[JsonPropertyName("size")] public long? Size { get; set; }
|
||||
}
|
||||
|
||||
public sealed class PackLock
|
||||
{
|
||||
[JsonPropertyName("name")] public string Name { get; set; } = "";
|
||||
[JsonPropertyName("version")] public string Version { get; set; } = "";
|
||||
[JsonPropertyName("minecraft")] public string Minecraft { get; set; } = "";
|
||||
[JsonPropertyName("loader")] public LoaderSpec Loader { get; set; } = new();
|
||||
[JsonPropertyName("mods")] public List<LockedMod> Mods { get; set; } = new();
|
||||
}
|
||||
|
||||
public sealed class LockedMod
|
||||
{
|
||||
[JsonPropertyName("source")] public string Source { get; set; } = "";
|
||||
[JsonPropertyName("slug")] public string? Slug { get; set; }
|
||||
[JsonPropertyName("versionId")] public string? VersionId { get; set; }
|
||||
[JsonPropertyName("fileId")] public string? FileId { get; set; }
|
||||
[JsonPropertyName("version")] public string Version { get; set; } = "";
|
||||
[JsonPropertyName("path")] public string Path { get; set; } = "";
|
||||
[JsonPropertyName("url")] public string Url { get; set; } = "";
|
||||
[JsonPropertyName("sha1")] public string Sha1 { get; set; } = "";
|
||||
[JsonPropertyName("size")] public long Size { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user