Skip to main content

Creating a Build

ModernUO includes a build tool that handles prerequisite checks, platform detection, and compilation. Run it through the publish script for your platform.

Run the publish script with no arguments to launch the guided setup wizard. It will check your environment, detect your platform, and walk you through the build process.

./publish.sh

The interactive mode will:

  • Verify your .NET SDK version and offer to install it if missing
  • Check for required native libraries on your platform
  • Let you choose between Debug and Release builds
  • Select your target OS and architecture
  • Run the full publish pipeline
tip

Interactive mode is the best way to get started. It catches missing dependencies before they become build errors.

Command Line Mode

For scripting or CI environments, pass arguments directly to skip the wizard.

./publish.sh release linux x64

The general format is:

publish <release|debug> [os] [arch]

Build Mode

ValueDescription
releaseOptimized for production
debugIncludes debug symbols for development

Target OS (optional)

Defaults to the current operating system if omitted.

ValuePlatform
winWindows
osxmacOS
linuxLinux

Target Architecture (optional)

Defaults to x64 if omitted.

ValueArchitecture
x6464-bit x86
arm64ARM 64-bit
tip

Cross-compilation is supported — you can build for any OS/architecture combination from any platform.