a1331212cb
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.
25 lines
775 B
C#
25 lines
775 B
C#
using System.Text.Json;
|
|
|
|
namespace BrassAndSigil.Server.Services;
|
|
|
|
/// <summary>
|
|
/// Project-wide JSON serializer options. Always case-insensitive on read so that
|
|
/// hand-edited config files / API responses don't silently fail to bind a property
|
|
/// because of a casing mismatch (e.g. "Command" vs "command", "JavaPath" vs "javaPath").
|
|
/// Use this everywhere we call JsonSerializer.Deserialize.
|
|
/// </summary>
|
|
public static class JsonOpts
|
|
{
|
|
public static readonly JsonSerializerOptions CaseInsensitive = new()
|
|
{
|
|
PropertyNameCaseInsensitive = true,
|
|
ReadCommentHandling = JsonCommentHandling.Skip,
|
|
AllowTrailingCommas = true,
|
|
};
|
|
|
|
public static readonly JsonSerializerOptions Pretty = new()
|
|
{
|
|
WriteIndented = true,
|
|
};
|
|
}
|