简体   繁体   中英

$ fyne package -os linux ... RESULT is: bash: fyne: command not found

After having coded and built my first app using the fyne toolkit, the next task is distribution. Following the instructions at https://developer.fyne.io/started/packaging

The command " fyne package -os linux -icon myapp.png " only produces " bash: fyne: command not found "

It would seem that there is a missing directory in my $PATH or $GOPATH variables or some other place that it needs to be, so that the 'fyne' cmd-tool can be found.

While my experience with the fyne toolkit has been very productive and enjoyable otherwise (been able to puzzle out every other difficulty) this issue has bested me.

Please, please, somebody help me. Maybe I'm just blind to what I cannot see; ;)

My app is beautiful ( of course it is, everyone thinks their work is beautiful ), but it's all for nothing if it can't be distributed. What will it matter if nobody ever gets to use it? Ugh, to be so close, yet sooooo far.

You need $GOPATH/bin in your $PATH. Sometimes the Go installer does not do this, and sometimes you just need to close the terminal or log out and try it again.

My version is gov1.18 and the above answer does not solve my problem. I use go insall instead of go get

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM