Hello, this is my usual setup for when building and packaging an installer for a Flet app.
Refer to ./tools/ for an easy start for both the build and the installer in one command.
When building with uv for flet, you usually do this command:
uv run flet run build windows -v
That's for building a flet app for windows. The -v flag means --verbose which just shows extra information
about the build process. In order to use the script, just simply call it with this:
uv run py .\tools\build_app.py
You can add the -h flag for extra information about it, since it uses argparse, so it acts like a command.