Closed
Description
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
Building with fyne release does not set Metadata().Release to true.
Also affects building with fyne-cross
How to reproduce
Build the code in example with fyne release or fyne-cross and it prints out test to the terminal where it should print out prod.
Screenshots
No response
Example code
import (
"fmt"
"fyne.io/fyne/v2/app"
)
func main() {
a := app.New()
if a.Metadata().Release {
a = app.NewWithID("com.example.app")
fmt.Println("prod")
} else {
a = app.NewWithID("com.example.app.test")
fmt.Println("test")
}
}```
### Fyne version
2.4.4
### Go compiler version
go version go1.21.8 linux/amd64
### Operating system and version
openSUSE Tumbleweed x86_64
### Additional Information
When building with fyne build --release it prints out prod to terminal
Activity