Skip to content

Using Scripts

Starciad edited this page Jan 20, 2025 · 1 revision

Scripts are small files designed to perform specific functions in the project. They are located in the src/Scripts directory, which is organized into subdirectories. Each subdirectory corresponds to tools used to execute these scripts. Currently, the following subdirectories are available:

  • PS: contains scripts designed to be executed using PowerShell.

Below, you will find details about all the scripts available in the project.

Scripts

Publish All

Location

Requirements

Before using this script, ensure that the following prerequisites are met:

  • Have the .NET 8 SDK installed on your machine;
  • Install the NetBeauty2 tool globally as a .NET Core tool.

Usage

Run the script with the following command in PowerShell:

./publish_all.ps1

Description

The publish_all.ps1 script is designed to automate the process of publishing the game's source code to multiple supported platforms. Its main features include:

  1. Compiling the project using the dotnet CLI for all supported platforms;
  2. Organizing the resulting build directories using the NetBeauty tool, ensuring a more structured and user-friendly experience;
  3. Publishing the project's required assets in a systematic and organized manner.

The script's execution time may vary depending on factors such as the project's complexity and the resources available on your machine.