-
-
Notifications
You must be signed in to change notification settings - Fork 3
Compiling for Windows
Compiling for Windows is a straightforward process that requires just a few steps. If you have already followed the instructions in Compiling the Game and Development Setup, you are ready to proceed.
First, you need to clone the repository locally on your machine. To do this, use the command below:
git clone --recursive--submodules "https://github.com/Starciad/StardustSandbox.git"The --recursive--submodules flag complements the command, causing submodules to be initialized and updated automatically. This is important for synchronization with project assets located in another repository on GitHub.
If you forgot the flag, don't worry! You can follow the sequence of commands below to do the same thing:
# Step 1: Clone the repository into the current directory.
git clone "https://github.com/Starciad/StardustSandbox.git"
# Step 2: Enter the directory.
cd "StardustSandbox"
# Step 3: Initialize the submodules.
git submodule init
# Step 4: Update the submodules.
git submodule updateAfter that, the assets will be available locally.
With everything prepared, you can start the compilation process. Choose one of the methods below:
In the src directory of the source code, you will find a .sln (solution) file with the following naming pattern:
SS.{Platform}.sln- Open the corresponding solution file in Visual Studio 2022.
- Press F6 to start the compilation process, or use the option
Build > Build Solution.
During the build process, all required libraries will be downloaded, and the assets will be processed. This may take some time, so please be patient.
If everything goes smoothly, the compilation will complete successfully.
After extracting the source code, navigate to the src directory. Locate the solution file you want to use, following the same naming pattern:
SS.{Platform}.slnOpen a PowerShell or Command Prompt terminal in the directory and execute the following command to compile the project:
dotnet build "SS.Windows.sln"To optimize and publish the game, use:
dotnet publish "SS.Windows.sln"The process will download the necessary libraries and build all project components. This might take a while, so please wait.
If everything completes without errors, the game will be successfully compiled.
After compiling the project, the executable file will be available at:
StardustSandbox/src/Game/bin/Debug/{runtime}/StardustSandbox.exeor
StardustSandbox/src/Game/bin/Release/{runtime}/StardustSandbox.exeStardust Sandbox • (c) 2023 Davi "Starciad" Fernandes | Home • Steam Store Page • Itch.io Store Page • Stable Releases (GitHub)