pyinstaller: add page (#22460)

This commit is contained in:
ZAKKY
2026-06-02 20:05:34 +05:30
committed by GitHub
parent d53a8166ed
commit c972d49c7a
+36
View File
@@ -0,0 +1,36 @@
# pyinstaller
> Bundle a Python application and its dependencies into a single package.
> More information: <https://pyinstaller.org/en/stable/man/pyinstaller.html>.
- Bundle a Python script into a one-folder bundle (output goes to `dist/`):
`pyinstaller {{path/to/script.py}}`
- Bundle a Python script into a single executable file:
`pyinstaller {{[-F|--onefile]}} {{path/to/script.py}}`
- Bundle a GUI application without opening a console window:
`pyinstaller {{[-w|--windowed]}} {{path/to/script.py}}`
- Set the name of the bundled executable:
`pyinstaller {{[-n|--name]}} {{app_name}} {{path/to/script.py}}`
- Set a custom icon for the executable:
`pyinstaller {{[-i|--icon]}} {{path/to/icon.ico}} {{path/to/script.py}}`
- Include additional data files or directories in the bundle:
`pyinstaller --add-data "{{path/to/source}}:{{destination}}" {{path/to/script.py}}`
- Display help:
`pyinstaller {{[-h|--help]}}`
- Display version:
`pyinstaller {{[-v|--version]}}`