Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr-Ermolinskiy authored Mar 13, 2024
1 parent 13dfc8e commit 0557851
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ To create an exe file in Windows, you need to execute the following command in t
```bash
pyinstaller --onefile --windowed --add-data "logo.ico;." --icon=logo.ico main.py
```
I strongly recommend that you use [UPX](https://upx.github.io/) to create exe files using pyinstaller to reduce the size of the executable. In this case you can run the following command:
I strongly recommend that you use [UPX](https://upx.github.io/) to reduce the size of the executable. In this case you can run the following command:
```bash
pyinstaller --onefile --windowed --add-data "logo.ico;." --icon=logo.ico --upx-dir=Path\to\the\upx-4.2.2-win64 main.py
```
The final size of the exe file will be about 38 MB.

## Usage

Expand Down

0 comments on commit 0557851

Please sign in to comment.