mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
fix: snap package apps with multiple binaries (#1449)
This commit is contained in:
parent
daa4501568
commit
20e3718a56
@ -228,12 +228,14 @@ func create(ctx *context.Context, snap config.Snapcraft, arch string, binaries [
|
||||
// setup the apps: directive for each binary
|
||||
for name, config := range snap.Apps {
|
||||
log.WithField("path", binary.Path).
|
||||
WithField("name", binary.Name).
|
||||
WithField("name", name).
|
||||
Debug("passed binary to snapcraft")
|
||||
|
||||
// TODO: test that the correct binary is used in Command
|
||||
// See https://github.com/goreleaser/goreleaser/pull/1449
|
||||
appMetadata := AppMetadata{
|
||||
Command: strings.TrimSpace(strings.Join([]string{
|
||||
binary.Name,
|
||||
name,
|
||||
config.Args,
|
||||
}, " ")),
|
||||
Plugs: config.Plugs,
|
||||
|
Loading…
x
Reference in New Issue
Block a user