-
QuestionHello, I hope to modify the name of --contents-directory when flet pack packs in single folder mode (-onedir mode), but I can't run it after directly adding it to the flet pack command If I directly use pyinstaller to package, the graphics of my running program are incorrect Code samplePS E:\Git\tools> uv run flet pack main.py -n myapp -i assets/images/app.ico --product-name myapp -y -D --contents-directory "app-0.0.1"
usage: flet [-h] [--version] {create,run,build,pack,publish,doctor} ...
flet: error: unrecognized arguments: --contents-directory app-0.0.1
|
Beta Was this translation helpful? Give feedback.
Answered by
irx999
Jun 21, 2025
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
I found the ans modify # add
pyi_args.append("--contents-directory")
pyi_args.append("app-0.0.1")
# before
print("Running PyInstaller :", pyi_args) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ndonkoHenri
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found the ans modify
.venv\Lib\site-packages\flet_cli\commands\pack.py