mirror of
https://github.com/EnumeratedDev/bpm-utils.git
synced 2026-09-16 02:56:11 +00:00
Update pkg.info format
This commit is contained in:
@@ -130,8 +130,8 @@ func createDirectory() {
|
||||
Downloads: []bpmutilsshared.PackageDownload{
|
||||
{
|
||||
Url: "https://wwww.my-url.com/file.tar.gz",
|
||||
ExtractTo: "${BPM_SOURCE}",
|
||||
ExtractStripComponents: 1,
|
||||
ExtractToBPMSource: true,
|
||||
Checksum: "replaceme",
|
||||
},
|
||||
},
|
||||
|
||||
@@ -32,14 +32,20 @@ type PackageInfo struct {
|
||||
}
|
||||
|
||||
type PackageDownload struct {
|
||||
Url string `yaml:"url"`
|
||||
Type string `yaml:"type,omitempty"`
|
||||
Url string `yaml:"url"`
|
||||
Type string `yaml:"type,omitempty"`
|
||||
Filepath string `yaml:"filepath,omitempty,omitempty"`
|
||||
|
||||
// Archive options
|
||||
NoExtract bool `yaml:"no_extract,omitempty"`
|
||||
ExtractToBPMSource bool `yaml:"extract_to_bpm_source,omitempty"`
|
||||
ExtractTo string `yaml:"extract_to,omitempty"`
|
||||
ExtractStripComponents int `yaml:"extract_strip_components,omitempty"`
|
||||
GitBranch string `yaml:"git_branch,omitempty"`
|
||||
Filepath string `yaml:"filepath,omitempty,omitempty"`
|
||||
Checksum string `yaml:"checksum,omitempty"`
|
||||
|
||||
// Git options
|
||||
CloneTo string `yaml:"clone_to,omitempty"`
|
||||
GitBranch string `yaml:"git_branch,omitempty"`
|
||||
|
||||
Checksum string `yaml:"checksum,omitempty"`
|
||||
}
|
||||
|
||||
func ReadPackageInfo(data []byte) (*PackageInfo, error) {
|
||||
|
||||
Reference in New Issue
Block a user