Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

flutter-desktop-embedding how to build exe file

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.

like image 278
da fa Avatar asked Jul 15 '19 01:07

da fa


2 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).

like image 179
smorgan Avatar answered Sep 17 '22 14:09

smorgan


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.

like image 26
Ankit Bhatt Avatar answered Sep 18 '22 14:09

Ankit Bhatt