Packaging Flet App for Windows

This document outlines the steps and requirements for packaging a Flet application into a standalone Windows executable.

Prerequisites

  • **Visual Studio 2022**: Must be installed.
  • **Workload**: The **Desktop development with C++** workload must be installed within Visual Studio 2022.
  • **Installation Guide**: Refer to external guides for detailed instructions on installing the correct Visual Studio components for Flutter desktop development.
  • Build Command

  • **Command**: flet build windows
  • **Platform Restriction**: This command can only be executed on the Windows operating system.
  • Troubleshooting

  • **Developer Mode**: If the build process fails with an error indicating a requirement for symlink support (e.g., "Building with plugins requires symlink support."), Developer Mode must be enabled on the system.
  • * **Enabling Developer Mode**: Open Windows Settings by running start ms-settings:developers and enable the Developer Mode option. * **Reference**: Consult external guides for detailed steps on enabling Developer Mode.