Skip to content

Commit 3738377

Browse files
Update README.md
1 parent 9620fc9 commit 3738377

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,34 @@ If you are on Linux, run ./dist/ImageCompressor
6464
- Python 3.x
6565
- PIL Library
6666
- Pyinstaller
67+
### Before you build
68+
Note that there are pre-built versions available for Windows and Linux (tested on Debian) in the "Releases" section. If you prefer to build the application yourself, follow the steps below.
69+
### How to build [Option 1 - Using megerd.py] [Recommended]
70+
1. Open a terminal and navigate to the main folder of the project.
71+
2. Run the following command:
6772
68-
### How to build
73+
```
74+
pyinstaller --onefile --name=ImageCompressor ./src/megerd.py
75+
```
76+
3. To execute:
77+
- On Linux:
78+
79+
```
80+
sudo ./dist/ImageCompressor
81+
```
82+
- On windows:
83+
84+
Navigate to the "dist" folder and double-click on ImageCompressor.exe
85+
86+
### How to build [Option 2 - Using graphicinterface.py and imagecompressor.py]
6987
1. Open a terminal and navigate to the main folder of the project.
7088
2. Run the following command to create the build, dist, and .spec files:
89+
7190
```
7291
pyinstaller --onefile --name=ImageCompressor ./src/graphicinterface.py
7392
```
7493
3. Modify the "ImageCompressor.spec" file with the following contents (just replace a):
94+
7595
```
7696
a = Analysis(['./src/graphicinterface.py'],
7797
pathex=['./src'],
@@ -94,6 +114,7 @@ If you are on Linux, run ./dist/ImageCompressor
94114
```
95115
96116
5. To execute on Linux just do:
117+
97118
```
98119
sudo ./dist/ImageCompressor
99120
```

0 commit comments

Comments
 (0)