Launch Diarkis Server on Windows Environment
Introduction
You can also build and run the Diarkis server as a Windows binary.
This allows client engineers developing on a Windows machine to operate the Diarkis server without WSL, aiding in the efficiency of development work.
However, please note that it is not intended for use in production environments, so it should be limited to local or development environments.
Operating Environment
As of 2025-04-04, the operation is assumed in the following environments:
Windows 10/11
Go 1.22 or later
(git, if you're cloning the repository using git)
Procedure
Installing Required Tools
Install Go 1.22 or later. https://go.dev/doc/install
You can also install it using a package manager like scoop.
> scoop install goInstalling Diarkis Server Template
If Cloning the Repository
Clone https://github.com/Diarkis/diarkis-server-template.
If Downloading Assets
Open https://github.com/Diarkis/diarkis-server-template/releases, download the latest version Assets, and extract and use them.
Generating the Project
Run the following command in PowerShell to generate the project.
project_id: Project ID issued by our companybuilder_token: Builder Token issued by our companyoutput: Output destination of the generated project. Here, it is explained as../server_binmodule_name: Module name. Here, it is explained asserver_bin
Project Initialization
Move to the directory where the project was output and execute the following command.
Build
Execute the following command to build the Diarkis server binary.
Once the build is complete, the binary is output to the remote_bin directory.
Execution
Start mars, http, and udp each in separate PowerShell windows.
Verification of Operation
You can verify communication using the Go test client.
HTTP address: Address of the Diarkis HTTP server
client user ID: ID of the user for authentication.
client Key: Client key. Specify
keyin the development environmentpuffer enabled: Use of the Diarkis Puffer module. Specify false here
If authentication is successful, it will display as follows and enter the command waiting state.
To create a Room after connection, you can create it by executing the following command.
Supplemental Information
Test Client
In the test client, you can execute various built-in commands in addition to the room create command to verify. Please check the following page of the help center for details.
magefile
magefile.¥run-mage.bat uses a Go tool called magefile internally.
Like make/rake, it is a build tool that allows build flows to be described in Go, enabling platform-independent management.
If you want to check other targets, you can do so by running it without any arguments as follows.
fakesignal
Diarkis uses UNIX signals such as SIGUSR1 and SIGUSR2to provide functionalities like switching log levels and toggling debug features ON/OFF. However, signals like SIGUSR1 do not exist on Windows.
Therefore, we have included a tool called fakesignal in the diarkis-server-template, allowing testing to be conducted even on Windows.
Last updated
Was this helpful?

