File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # How to use PyInstaller to package the project
2+
3+ ## Installation Dependencies
4+
5+ ``` bash
6+ pip install -r requirements.d/full.txt
7+ pip install pyinstaller
8+ ```
9+
10+ ## Build Executable File
11+
12+ ``` shell
13+ pyinstaller --onefile --console \
14+ --name asgi-webdav \
15+ standalone.py
16+ ```
17+
18+ ## Run It
19+
20+ ``` shell
21+ ./dist/asgi-webdav -r .
22+ ```
Original file line number Diff line number Diff line change 44-r mkdocs.txt
55-r pypi.txt
66-r docker.txt
7- pyinstaller
87
98# dev
109-r test.txt
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python
2+
3+
4+ """
5+ The standalone entry point.
6+
7+ please visit docs/howto/howto-pyinstaller.en.md for more information.
8+ """
9+
10+
11+ from asgi_webdav .cli import main as cli_main
12+
13+
14+ def main () -> None :
15+ import sys
16+
17+ try :
18+ sys .exit (cli_main ())
19+
20+ except KeyboardInterrupt :
21+ sys .exit (1 )
22+
23+
24+ if __name__ == "__main__" :
25+ main ()
You can’t perform that action at this time.
0 commit comments