kmcmake

package
v0.6.25 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadArchive

func DownloadArchive(outdir string, v *Version) (string, error)

DownloadArchive: find "any-any" asset → check local size → download if needed

func InstallTemplate

func InstallTemplate(sourceDir, name, installPrefix string) error

InstallTemplate: untar → cmake configure → build → install

func TestInstalled

func TestInstalled(projectDir string) error

func UpdateIndex

func UpdateIndex(url, output string, force bool) error

Types

type Asset

type Asset struct {
	DownloadURL string `json:"download_url"`
	SizeBytes   int    `json:"size_bytes"`
	Sha256      string `json:"sha256"`
}

type Metadata

type Metadata struct {
	GeneratedAt   time.Time `json:"generated_at"`
	TotalReleases int       `json:"total_releases"`
	LatestTag     string    `json:"latest_tag"`
}

type ReleaseIndex

type ReleaseIndex struct {
	Metadata Metadata  `json:"metadata"`
	Versions []Version `json:"versions"`
}

type Version

type Version struct {
	TagName     string           `json:"tag_name"`
	Title       string           `json:"title"`
	PublishedAt time.Time        `json:"published_at"`
	Status      string           `json:"status"`
	Description string           `json:"description"`
	TarURL      string           `json:"tar_url"`
	ZipURL      string           `json:"zip_url"`
	Assets      map[string]Asset `json:"assets"`
	TotalAssets int              `json:"total_assets"`
	IsLatest    bool             `json:"is_latest"`
}

func GetLatestVersion

func GetLatestVersion(indexPath string) (*Version, error)

GetLatestVersion parses index file and returns latest version

Jump to

Keyboard shortcuts

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