Checklist
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
fyne build and see your executable
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
Checklist
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
fyne buildand see your executablefyne packageand 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 buildand thenfyne 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