-
Notifications
You must be signed in to change notification settings - Fork 282
Release builds #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We don't have support for releases yet. For now, hover only builds a debug version of the app with a console to track logs. I'll keep this issue open to track support for release builds. |
Things that
|
I am really looking forward to this as well. |
Can't wait to play with it. |
@GeertJohan Any updates or ETA on this? If not, would you be able to provide any documentation on how to go about removing the console window manually for now? It would be greatly appreciated. Thanks. |
Once my final exams are over, I'll like to take a look at release builds, (if it's not done by then). $ # export CGO_LDFLAGS="-L$HOME/.cache/hover/engine/windows/" # Not working!
$ # set CGO_LDFLAGS="-L%HOMEPATH%/.cache/hover/engine/windows/" # also not working the dll isn't found
$ cd ./desktop/cmd
$ go build -ldflags="-L%HOMEPATH%/.cache/hover/engine/windows/" -H=windowsgui
$ mv cmd ../build/outputs/windows
$ ../build/outputs/windows/cmd # to start the app |
@Drakirus Thanks for that. Im assuming its supposed to be |
Yup |
Im getting the following error:
|
#34 (comment) will have your back |
@Drakirus That worked, thank you! For anyone having this issue, copying the windows env var command:
|
It doesn't work
I just copy
|
@Drakirus When building for OSX with hover, it seems as though the |
@alexelisenko I don't know much. |
How is the progress of this feature? I am looking expectantly toward the feature. |
For Windows cd C:\your_project_dir\desktop\cmd Thank you all. you are amazing. |
FYI, Work in progress in branch feature/release, not completed yet. |
go-flutter-desktop/hover#11 got merged! |
Updates on hover occurs, make sure to run |
Does Mac and Linux supported yet? Still get console windows in mac. |
@deromask: Answer copy/pasted from zserge/webview issue 13: On windows there are two subsystems, console and windows. They often have two different entry points (main vs WinMain). But on MacOS it's all the same executable. The reason you see a terminal window is because you launch the binary directly and not as an app bundle. Try running the following commands:
Now in Finder you should see minimal.app, clicking on that would launch a GUI window without a terminal. Of course, for a more proper app you would also have to add Some more readings: https://stackoverflow.com/questions/23861914/how-to-hide-terminal-window-in-mac-osx. |
@Drakirus Thank you very much! |
How to update previous installed device.
This gives following error
Thank You |
|
@Drakirus Any luck figuring out the At the moment, it seems to be set to whatever OS version is used to build. I could try setting the ENV variable to |
Perhaps this can be added to: https://github.com/go-flutter-desktop/hover/blob/df3629d6657c7e194f966478c42faa516a545ba4/cmd/build.go#L195 |
@alexelisenko if you build your own version of hover and add the |
I can give it a shot. Would you be able to give instructions on building and using a custom version of hover? |
|
I think I have it working, but need to do some more testing. I had to add the following:
and
|
Is there a way to use something like On debug mode, There is no console window when using dart Process, but on release mode, This is the biggest problem, I use a bunch of Except that, I can't find how to set icon to the final executable, Am I missing something? By the way, Thanks for this project 👍 , It's awesome. |
@Tokenyet Does the process you are executing open with a console window (if you run it manually)? If anyone can correct me if I'm wrong, but, I believe that if you execute a process that opens a console window, that is your issue. |
You can set your icon with same icon name previously stored inside desktop/assets/. |
I don't know what you think, but what I mean is If I build a Debug executable, It's only one console, no any popups. This is only happened in Release mode. |
Override icon.png will only replace the icon of the windows bar, not the executable itself in my case. |
@Tokenyet Have you tried setting the |
That's what I'm doing. |
With the following code, I made It! This is the hiding solution to solve the popup issue.
|
Sorry, but I can only find the workaround, I think someone would interest on this, so I decided to share here. For changing executable icon, following the instruction on rc-demo, and run |
I use the
hover build
command to generate a Windows executable, but there is a black console, how to publish a real program without a console.The text was updated successfully, but these errors were encountered: