steam

package
v0.0.0-...-2e21b6e Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VRChatAppID          = "438100"
	VRChatWindowsDepotID = "438101"
	VRChatAndroidDepotID = "438102"
)
View Source
const AndroidClientName = "android-steamos"

Variables

View Source
var DefaultWindowsClients = []WindowsClient{
	{SteamBranch: "public", ClientName: "windows"},
	{SteamBranch: "open-beta", ClientName: "open-beta-windows"},
}

Functions

func ClientBuildPages

func ClientBuildPages(b *ClientBuild) map[string]string

func DepotDownloaderPath

func DepotDownloaderPath(repoRoot string) string

func DownloadAndroidDepot

func DownloadAndroidDepot(ddPath, outDir, username, password, sharedSecret string) (manifestID string, steamBuildID string, err error)

func DownloadBranch

func DownloadBranch(ddPath, branch, outDir, username, password, sharedSecret string) (manifestID string, steamBuildID string, err error)

func DownloadDepot

func DownloadDepot(ddPath, depotID, branch, outDir, username, password, sharedSecret string, filelistLines []string) (manifestID string, steamBuildID string, err error)

func FindRepoRoot

func FindRepoRoot() (string, error)

func GenerateSteamGuardCode

func GenerateSteamGuardCode(sharedSecret string, at time.Time) (string, error)

func SessionHome

func SessionHome(ddPath string) string

SessionHome returns the HOME used for DepotDownloader so Steam refresh tokens land in <repo>/.steam-session (gitignored; cached in CI).

func WriteBuildJSON

func WriteBuildJSON(path string, build *ClientBuild) error

Types

type ClientBuild

type ClientBuild struct {
	Version      string    `json:"version"`
	BuildNumber  string    `json:"buildNumber"`
	BuildHash    string    `json:"buildHash"`
	SteamBuildID string    `json:"steamBuildId,omitempty"`
	ManifestID   string    `json:"manifestId,omitempty"`
	Branch       string    `json:"branch"`
	FetchedAt    time.Time `json:"fetchedAt"`
	RawMatch     string    `json:"rawMatch,omitempty"`
}

func ExtractBuildFromAPK

func ExtractBuildFromAPK(apkPath, label string) (*ClientBuild, error)

func ExtractBuildFromAndroidDir

func ExtractBuildFromAndroidDir(dir, label string) (*ClientBuild, error)

func ExtractBuildFromBytes

func ExtractBuildFromBytes(data []byte, branch string) (*ClientBuild, error)

func ExtractBuildFromDir

func ExtractBuildFromDir(dir, branch string) (*ClientBuild, error)

func ExtractHighestBuildFromBytes

func ExtractHighestBuildFromBytes(data []byte, branch string) (*ClientBuild, error)

ExtractHighestBuildFromBytes picks the match with the largest numeric build number. Useful when a page embeds multiple historical version strings.

type WindowsClient

type WindowsClient struct {
	SteamBranch string
	ClientName  string
}

Jump to

Keyboard shortcuts

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