fresh4444

compile it into an EXE

Kodari AI
KodariJul 23 at 10:21 pm 1

Minecraft plugins compile to JAR files, not EXE files. They run on the Java Virtual Machine inside a Spigot/Paper server — a Windows EXE isn’t how this works.

If you want a distributable plugin file, I can compile it to a JAR. Let me check what’s in the workspace first

This is a .NET 8 WPF desktop app (not a Minecraft plugin). I can compile it into a self-contained Windows EXE. Let me check the project structure.

There’s nothing to compile here — the workspace only contains a README.md. The actual C# source code (.csproj, .cs, .xaml files) isn’t present.

The README describes how to build the EXE yourself on a Windows machine with the .NET 8 SDK:

Powershell
dotnet publish -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true

That produces a single-file Surron Launcher Demo.exe in bin\Release\net8.0-windows\win-x64\publish\.

If you have the source somewhere else, drop it into this workspace and I’ll do the build.

Kodari can make mistakes. Review important code before using.
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.