Code Monkey home page Code Monkey logo

Comments (11)

andydotxyz avatar andydotxyz commented on September 7, 2024

What is the release of the fyne command line? (fyne --version)

from fyne.

andydotxyz avatar andydotxyz commented on September 7, 2024

I thought I could replicate this but I cannot. The fyne release command hard-codes release bool to true so I'm at a loss as to what is happening here...

from fyne.

rad756 avatar rad756 commented on September 7, 2024

The output of fyne --version is "fyne version v2.4.4"

I tried to run the above code with

  • go run .
  • fyne build (the built binary)
  • fyne release (the built binary)

For each the string printed to terminal was test
The release should print out prod, correct?

from fyne.

rad756 avatar rad756 commented on September 7, 2024

Maybe this is for some reason a platform specific bug, are you trying to check this only on MacOS? Or also tried it on Windows and Linux? I do not have a windows install with the dev enviornment setup right now, I could check it another day on Windows if it could help track down the core of this issue

from fyne.

andydotxyz avatar andydotxyz commented on September 7, 2024

I tried to run the above code with

go run .
fyne build (the built binary)
fyne release (the built binary)

The last "the built binary" is concerning me - did you clear out the previous one before testing release? What was the path to the release binary that you tested?

from fyne.

rad756 avatar rad756 commented on September 7, 2024

I deleted the binary that built with fyne build first. Then I ran fyne release which created an archive which I extracted and ran that extracted binary

from fyne.

andydotxyz avatar andydotxyz commented on September 7, 2024

Can you please compile the tool locally with a log of "b.release" on line 199 of cmd/fyne/internal/commands/build.go (inside build() function). That way we can see if false is being passed in somehow. If so then a "debug.PrintStack" would help a lot.

from fyne.

rad756 avatar rad756 commented on September 7, 2024

Just so I understand you correctly, you would like for me to compile fyne v2.4.4 locally with the changes you requested above?

from fyne.

rad756 avatar rad756 commented on September 7, 2024

Locally compiled source code (go install .) for fyne v2.4.4 with the addition of "log.Println(b.release)".
Compiling the above code snippet with fyne release and running the built binary, metadata is false but the log during compiling is true.

Tried to do the same with "fyne package - os linux --release". Log during compile was true but after running the executed binary the metadata was true this time.

Doing the same with "fyne package - os linux" goes to false on both compile log and print of executed binary.

from fyne.

andydotxyz avatar andydotxyz commented on September 7, 2024

Thanks this has been very helpful, PR inbound

from fyne.

andydotxyz avatar andydotxyz commented on September 7, 2024

Resolved for v2.4.5 and 2.5 on develop

from fyne.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.