github

package
v1.0.112 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: LGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HTTPClient = &http.Client{Timeout: 30 * time.Second}

HTTPClient is the http.Client used for GitHub API operations, allowing mock overrides in tests.

Functions

func UpdateGBE

func UpdateGBE(ctx context.Context, cfg *config.Config) error

UpdateGBE fetches and extracts the latest GBE fork.

func UpdateSteamlessAssets added in v1.0.105

func UpdateSteamlessAssets(ctx context.Context, cfg *config.Config, destDir string) error

UpdateSteamlessAssets fetches the latest release assets from steamless-rs and saves them to destDir.

Types

type ToolInfo added in v1.0.112

type ToolInfo struct {
	Name          string `json:"name"`
	Key           string `json:"key"` // "gbe" | "steamless"
	InstalledPath string `json:"installed_path"`
	InstalledTag  string `json:"installed_tag"`
	LatestTag     string `json:"latest_tag"`
	ReleaseName   string `json:"release_name"`
	ReleaseNotes  string `json:"release_notes"`
	ReleaseURL    string `json:"release_url"`
	PublishedAt   string `json:"published_at"`
	HasUpdate     bool   `json:"has_update"`
}

ToolInfo holds version, release metadata, and changelog notes for external tools.

func FetchGBERelease added in v1.0.112

func FetchGBERelease(ctx context.Context, cfg *config.Config) (*ToolInfo, error)

FetchGBERelease fetches the latest release metadata and release notes for GBE fork.

func FetchSteamlessRelease added in v1.0.112

func FetchSteamlessRelease(ctx context.Context, cfg *config.Config) (*ToolInfo, error)

FetchSteamlessRelease fetches the latest release metadata and release notes for steamless-rs.

func GetToolsStatus added in v1.0.112

func GetToolsStatus(ctx context.Context, cfg *config.Config) ([]ToolInfo, error)

GetToolsStatus returns release and update status for both GBE and steamless.

Jump to

Keyboard shortcuts

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