Skip to content

Fyne package is removing built executables #56

Description

@andydotxyz

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

The package command is using the build command which will remove existing build files in PWD...

Instead it should build to a temporary directory so we don't overwrite build files or other files with the same name.

Info extracted from a conversation with @hkparker.

How to reproduce

  1. fyne build and see your executable
  2. fyne package and you will see a package but the executable is gone.

Note that this will not be recognisable on Windows because they have the same file name.

This also happens with conflicting builds for different platforms, such as a Linux host running fyne build and then fyne package -os android.

Screenshots

No response

Example code

n/a

Fyne version

2.5.3 and develop

Go compiler version

all

Operating system and version

macOS/Linux

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions