mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-04 03:11:55 +02:00
feat: scoop depends (#3797)
closes #3796 Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
4790e2fe3d
commit
9dfa94cbb3
@ -194,6 +194,7 @@ type Manifest struct {
|
||||
Persist []string `json:"persist,omitempty"` // Persist data between updates
|
||||
PreInstall []string `json:"pre_install,omitempty"` // An array of strings, of the commands to be executed before an application is installed.
|
||||
PostInstall []string `json:"post_install,omitempty"` // An array of strings, of the commands to be executed after an application is installed.
|
||||
Depends []string `json:"depends,omitempty"` // A string or an array of strings.
|
||||
}
|
||||
|
||||
// Resource represents a combination of a url and a binary name for an architecture.
|
||||
@ -223,6 +224,7 @@ func dataFor(ctx *context.Context, cl client.Client, artifacts []*artifact.Artif
|
||||
Persist: ctx.Config.Scoop.Persist,
|
||||
PreInstall: ctx.Config.Scoop.PreInstall,
|
||||
PostInstall: ctx.Config.Scoop.PostInstall,
|
||||
Depends: ctx.Config.Scoop.Depends,
|
||||
}
|
||||
|
||||
if ctx.Config.Scoop.URLTemplate == "" {
|
||||
|
@ -233,6 +233,7 @@ type Scoop struct {
|
||||
SkipUpload string `yaml:"skip_upload,omitempty" json:"skip_upload,omitempty" jsonschema:"oneof_type=string;boolean"`
|
||||
PreInstall []string `yaml:"pre_install,omitempty" json:"pre_install,omitempty"`
|
||||
PostInstall []string `yaml:"post_install,omitempty" json:"post_install,omitempty"`
|
||||
Depends []string `yaml:"depends,omitempty" json:"depends,omitempty"`
|
||||
Goamd64 string `yaml:"goamd64,omitempty" json:"goamd64,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -77,6 +77,11 @@ scoop:
|
||||
# Default is empty.
|
||||
post_install: ["Write-Host 'Running postinstall command'"]
|
||||
|
||||
# An array of dependencies.
|
||||
# Defaults to empty.
|
||||
# Since GoReleaser v1.16.0.
|
||||
depends: ["git", "foo"]
|
||||
|
||||
# GOAMD64 to specify which amd64 version to use if there are multiple versions
|
||||
# from the build section.
|
||||
# Default is v1.
|
||||
|
6
www/docs/static/schema.json
generated
vendored
6
www/docs/static/schema.json
generated
vendored
@ -2403,6 +2403,12 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"depends": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"goamd64": {
|
||||
"type": "string"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user