You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to build an application for x64 with environment variables but I get an error
/go/pkg/mod/golang.org/[email protected]/pkg/tool/linux_arm64/link: -X flag requires argument of the form importpath.name=value
To Reproduce:
Steps to reproduce the behaviour:
GOFLAGS="-ldflags=-X -ldflags=main.APP_URL=https://best.app" fyne-cross windows -arch=amd64 --app-id my.app
When run GOFLAGS="-ldflags=-X=main.APP_URL=https://best.app" fyne-cross windows -arch=amd64 --app-id my.app
or GOFLAGS="-ldflags=-X-ldflags=main.APP_URL=https://best.app" fyne-cross windows -arch=amd64 --app-id my.app
the application builds but the variables are not linked in main.go
when i build the app for mac/windows on arm such a problem does not arise, envs are linked
Device info
OS: MacOS
Version: Version 14.6.1 (23G93)
Go version: go version go1.23.2 darwin/arm64
fyne-cross version: fyne-cross version v1.5.0
Fyne version: fyne cli version: v2.5.1
The text was updated successfully, but these errors were encountered:
I want to build an application for x64 with environment variables but I get an error
/go/pkg/mod/golang.org/[email protected]/pkg/tool/linux_arm64/link: -X flag requires argument of the form importpath.name=value
To Reproduce:
Steps to reproduce the behaviour:
GOFLAGS="-ldflags=-X -ldflags=main.APP_URL=https://best.app" fyne-cross windows -arch=amd64 --app-id my.app
GOFLAGS="-ldflags=-X=main.APP_URL=https://best.app" fyne-cross windows -arch=amd64 --app-id my.app
or
GOFLAGS="-ldflags=-X-ldflags=main.APP_URL=https://best.app" fyne-cross windows -arch=amd64 --app-id my.app
the application builds but the variables are not linked in main.go
The text was updated successfully, but these errors were encountered: