Skip to content

Add debug option and verbose output for all commands executed by fyne while building a release #55

@vkuznet

Description

@vkuznet

Is your feature request related to a problem? Please describe:

I found that I can't get new release on macOS (darwin) while executing the following command:

fyne release -os darwin -appID com.example.app -appVersion 1.0 -appBuild 1 -profile development -category utilities --cert W123X123XYZ
2022/06/14 13:15:15 Fyne error:  Codesign failed
2022/06/14 13:15:15   Cause: exit status 1
2022/06/14 13:15:15   At: /Users/vk/Work/Languages/Go/gopath/pkg/mod/fyne.io/fyne/[email protected]/cmd/fyne/internal/commands/release.go:308
unable to codesign application bundle

Upon fyne codebase inspection I found that it runs few commands behind the scene and it would be extremely helpful to get verbose output of this commands, especially if there is an error. This can be achieved by adding debug option to release which will provide the following:

  • exact command fyne release execute
  • both stdout and stderr of that comnand
  • its exit status
    This will allow developers to reproduce every step of the release build.

Is it possible to construct a solution with the existing API?

No

Describe the solution you'd like to see:

fyne release -debug ...

# and it will provide something like:
Command executed: codesign ...
Stdout of command output: bla-bla
Stderr of command output: error-error
Status of command: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions