setup

package
v5.3.1-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SteamCMDLinuxURL   = "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz"
	SteamCMDWindowsURL = "https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip"
	SteamCMDLinuxDir   = "./steamcmd"
	SteamCMDWindowsDir = "C:\\SteamCMD"
)

Constants for repeated strings

Variables

This section is empty.

Functions

func CheckAndDownloadUIMod

func CheckAndDownloadUIMod()

func Install

func Install(wg *sync.WaitGroup)

Install performs the entire installation process and ensures the server waits for it to complete

func InstallAndRunSteamCMD

func InstallAndRunSteamCMD()

InstallAndRunSteamCMD installs and runs SteamCMD based on the platform (Windows/Linux). It automatically detects the OS and calls the appropriate installation function.

func UpdateExecutable

func UpdateExecutable() error

UpdateExecutable checks for and applies the latest release from GitHub

Types

type ExtractorFunc

type ExtractorFunc func(io.ReaderAt, int64, string) error

ExtractorFunc is a type that represents a function for extracting archives. It takes an io.ReaderAt, the size of the content, and the destination directory.

type Version

type Version struct {
	Major int
	Minor int
	Patch int
}

Version holds semantic version components

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL