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

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.

Visual Studio components

Unable to find suitable Visual Studio toolchain. Please run `flutter
doctor` for more details.

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

flet build windows

Creates a Windows application from your Flet app.