pkg

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile

func Compile(folder string, manifest Manifest)

func GenPkgInfo

func GenPkgInfo(buildFolder string, manifest Manifest)

func GetFilesList

func GetFilesList(folder string) []string

func GetPackageOS

func GetPackageOS() string

func PreparePackage

func PreparePackage(folder string, buildFolder string, manifest Manifest)

Types

type Manifest

type Manifest struct {
	ManifestVersion    float64         `json:"manifestVersion"`
	PackageName        string          `json:"packageName"`
	PackageVersion     string          `json:"packageVersion"`
	Depends            []string        `json:"depends"`
	CompatibleVersions []string        `json:"compatibleVersions"`
	Build              ManifestBuild   `json:"build"`
	Project            ManifestProject `json:"project"`
}

func LoadManifest

func LoadManifest(folder string) Manifest

type ManifestBuild

type ManifestBuild struct {
	Folders   []string            `json:"create"`
	Downloads []map[string]string `json:"downloads"`
	Command   string              `json:"command"`
	Args      []string            `json:"args"`
	Folder    string              `json:"folder"`
	Dlls      []string            `json:"dlls"`
	Share     string              `json:"share"`
}

type ManifestProject

type ManifestProject struct {
	Maintainer string `json:"maintainer"`
	Email      string `json:"email"`
	Homepage   string `json:"homepage"`
	BugTracker string `json:"bugTracker"`
}

type PKGINFO

type PKGINFO struct {
	ManifestVersion    float64         `json:"manifestVersion"`
	PackageName        string          `json:"packageName"`
	PackageVersion     string          `json:"packageVersion"`
	PackageOS          string          `json:"packageOS"`
	CompatibleVersions []string        `json:"compatibleVersions"`
	Depends            []string        `json:"depends"`
	Files              []string        `json:"files"`
	Project            ManifestProject `json:"project"`
}

Jump to

Keyboard shortcuts

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