-
-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
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
- 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
Metadata
Metadata
Assignees
Labels
No labels