flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
11.5k stars 449 forks source link

Flet pack will remove all files under distpath #4211

Closed RinggaV closed 1 month ago

RinggaV commented 1 month ago

Duplicate Check

Describe the bug

I didn't create an additional output path, but set it to desktop, all files under desktop were deleted... It's very annoying. flet version: 0.21.2

Code sample

Code ```python Not the code ```

To reproduce

None

Expected behavior

No response

Screenshots / Videos

Captures [Upload media here]

Operating System

Windows

Operating system details

Win 11

Flet version

0.21.2

Regression

Yes, it used to work in a previous Flet version (please specify the version in additional details)

Suggestions

No response

Logs

Logs ```console [Paste your logs here] ```

Additional details

No response

OwenMcDonnell commented 1 month ago

Can you try using the newest version and refer to the docs for use of flet build command for packaging.