Closed mondy closed 8 months ago
As you can see in the PR #4715 I realised that it should be possible to do this completely transparently so that when you run using standard Go tools we pick up metadata if present.
From v2.5.0 this will just work by default :)
Checklist
Is your feature request related to a problem?
Simply put, I want to disable
-H=windowsgui
and embed theFyneApp.toml
metadata. See #3781 and #3604.The option to disable
-H=windowsgui
infyne build
was not accepted. However, if there is a way to add metadata whengo build
, the problem is solved.Is it possible to construct a solution with the existing API?
No response
Describe the solution you'd like to see.
Add a new subcommand to the fyne command to generate metadata source code. The source code to set the metadata is generated at
fyne build
time. The source code for the following section will be helpful.https://github.com/fyne-io/fyne/blob/e332a5e47813bff1af9631cbbfe84654c0143189/cmd/fyne/internal/commands/build.go#L377C6-L377C28
Or maybe there is a better way. Is there anything?