mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
postbuild hook fix (#2839)
postbuildhook should only run if application was built
This commit is contained in:
@@ -146,15 +146,15 @@ func Build(options *Options) (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
}
|
||||
|
||||
hookArgs["${bin}"] = compileBinary
|
||||
for _, hook := range []string{options.Platform + "/" + options.Arch, options.Platform + "/*", "*/*"} {
|
||||
if err := execPostBuildHook(outputLogger, options, hook, hookArgs); err != nil {
|
||||
return "", err
|
||||
hookArgs["${bin}"] = compileBinary
|
||||
for _, hook := range []string{options.Platform + "/" + options.Arch, options.Platform + "/*", "*/*"} {
|
||||
if err := execPostBuildHook(outputLogger, options, hook, hookArgs); err != nil {
|
||||
return "", err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return compileBinary, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user