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