Skip to main content

Packaging app for Windows

Flet CLI provides flet build windows command that allows packaging Flet app into a Windows application.

note

The command can be run on Windows only.

Prerequisites

Visual Studio 2022

Building Flet app for Windows desktop requires Visual Studio 2022 with Desktop development with C++ workload installed.

Follow this medium article for the instructions on downloading & installing correct Visual Studio components for Flutter desktop development.

Enable Developer Mode

While running flet build on Windows you may get the following error:

Building with plugins requires symlink support.

Please enable Developer Mode in your system settings. Run
start ms-settings:developers
to open settings.

Follow this SO answer for the instructions on how to enable developer mode in Windows 11.

flet build windows

Creates a Windows application from your Flet app.