in flutter-desktop-embedding , I am a windows environment, I can run it, but I don't know how to build an exe file. I want to know what to do.
5 Answers
If you flutter build
or flutter run
a desktop project, you're already building a .exe; that's what's being launched by flutter run
. You can find it in the build
directory of the project (e.g., build\windows\x64\Debug\Runner\Flutter Desktop Example.exe
for the FDE example app).

- 20,228
- 3
- 47
- 55
-
But this is the debug file, and there will be a command line when running. β da fa Jul 16 '19 at 02:21
-
2I was answering the question you asked, which didn't mention either of those things. For those, see https://github.com/flutter/flutter/issues/30672 and https://github.com/flutter/flutter/issues/31268. It's also not suitable for deployment or production use at this point, as the project README prominently states, so it's not clear why you want a release build. β smorgan Jul 16 '19 at 12:52
-
3I want to use it myself, but every time I have a command line, itβs not good to watch. β da fa Jul 17 '19 at 12:03
First check the build options with flutter build -h
Then run flutter build windows
Then you can find the build in the following path \build\windows\x64\Release\Runner
Although it is created in the release folder it is still just a debug build.

- 1,143
- 9
- 17

- 91
- 1
- 2
You can find the release
version of your App after running flutter build windows
in \build\windows\runner\Release\

- 111
- 1
- 6
but for distribution or run on other pc you need three files of visual studio 2019 to add in folder where you have your .exe file files are msvcp140.dll vcruntime140.dll vcruntime140_1.dll
path for these file is C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE

- 173
- 7
Just run flutter build windows
After it is done compiling and making the executable file you will find in build\windows\runner\Release\
your .exe file type should be listed.

- 33
- 1
- 1
- 11