Documentation
¶
Index ¶
- Constants
- Variables
- func ClientBuildPages(b *ClientBuild) map[string]string
- func DepotDownloaderPath(repoRoot string) string
- func DownloadAndroidDepot(ddPath, outDir, username, password, sharedSecret string) (manifestID string, steamBuildID string, err error)
- func DownloadBranch(ddPath, branch, outDir, username, password, sharedSecret string) (manifestID string, steamBuildID string, err error)
- func DownloadDepot(ddPath, depotID, branch, outDir, username, password, sharedSecret string, ...) (manifestID string, steamBuildID string, err error)
- func FindRepoRoot() (string, error)
- func GenerateSteamGuardCode(sharedSecret string, at time.Time) (string, error)
- func SessionHome(ddPath string) string
- func WriteBuildJSON(path string, build *ClientBuild) error
- type ClientBuild
- func ExtractBuildFromAPK(apkPath, label string) (*ClientBuild, error)
- func ExtractBuildFromAndroidDir(dir, label string) (*ClientBuild, error)
- func ExtractBuildFromBytes(data []byte, branch string) (*ClientBuild, error)
- func ExtractBuildFromDir(dir, branch string) (*ClientBuild, error)
- func ExtractHighestBuildFromBytes(data []byte, branch string) (*ClientBuild, error)
- type WindowsClient
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 DownloadAndroidDepot ¶
func DownloadBranch ¶
func DownloadDepot ¶
func FindRepoRoot ¶
func GenerateSteamGuardCode ¶
func SessionHome ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.