Replies: 1 comment
-
|
I'm having this problem too. I want to use both the command line and the GUI. Is there a solution for this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Title: Windows
wails buildapplication not printing console output, butgo run .works fineDescription:
I'm working on a simple Wails application on Windows and encountered the following issue:
Steps Taken:
wails init -n MyTestAppto create a new Wails project.main.goto print the version information via-vor--version.Issue:
go run . -v, the application correctly prints the version informationApp Version: 1.0.0.wails buildand executing the.exefile with-vparameter (.\build\bin\MyTestApp.exe -v), no output is displayed in the console.Expected Behavior:
go run .or using thewails buildgenerated.exe, passing--versionor-vshould print the version information in the console and not launch the GUI window.Actual Behavior:
go run . -v, the version information is correctly printed in the console.wails buildand executing the generated.exefile with-vparameter, there is no output in the console.main.goCode:Here’s the
main.gocode that I am using:Execution Flow:
wails init -n MyTestAppcd MyTestAppwails build.\build\bin\MyTestApp.exe -v– No output in the consolego run . -v– OutputsApp Version: 1.0.0Problem:
wails buildnot print the version information in the console? Is there any specific configuration or behavior that causes the command-line arguments not to be correctly handled when running the built.exe?Environment:
Goal:
Through this question, I hope to understand how to ensure that the application built with
wails buildworks correctly in the command line and prints version information when the-vparameter is passed, instead of launching the GUI window.Beta Was this translation helpful? Give feedback.
All reactions