Files
README.md
Code
1 62
README.md
# Surron Launcher Demo
A Windows WPF/.NET 8 starter launcher for Surron SMP.
## Included in this demo
- Surron SMP quick-launch card using `SurronNation.mc.gg`
- Editable Donut SMP quick-launch address
- Server address persistence in JSON
- Full-brightness and FPS-display profile toggles
- User mod `.jar` import, listing, removal, and managed mods folder
- Minecraft version and RAM settings
- Opens the official Minecraft Launcher and copies the selected IP
- Dark Surron-branded interface
## Important limitation
This first demo is a launcher shell and profile manager. It does **not** fake Microsoft authentication, redistribute Minecraft, or silently install third-party mods. The production stage should add:
1. Microsoft OAuth sign-in through the user's browser.
2. Minecraft ownership/profile verification.
3. Version, Java runtime, assets, libraries, and mod-loader installation.
4. A manifest containing approved mod download URLs and SHA-256 hashes.
5. Proper direct-connect launch arguments after authentication.
6. Secure token storage using Windows DPAPI or Credential Manager.
## Build
1. Install the .NET 8 SDK on Windows.
2. Open this folder in Visual Studio 2022, or run:
```powershell
dotnet restore
dotnet build -c Release
dotnet run
```
To publish a standalone Windows executable:
```powershell
dotnet publish -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true
```
The output will be under:
```text
bin\Release\net8.0-windows\win-x64\publish\
```
## Stored files
The demo creates:
```text
%AppData%\SurronLauncherDemo\launcher-config.json
%AppData%\SurronLauncherDemo\instance\mods\
```
## Built-in mod note
The full-brightness and FPS switches currently save profile choices. The actual mod files are intentionally not bundled. Add approved Fabric/NeoForge mod artifacts through a signed launcher manifest in the production version.