Skip to content

Commit 3756627

Browse files
committed
2 parents 77567af + 6a2e4e9 commit 3756627

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Visit [dcwelch.github.io/fr](https://dcwelch.github.io/fr) or the repo's [Releas
4949
pillow
5050
pillow-heif
5151
pytz
52+
piexif
5253
```
5354
- FFmpeg for `ffprobe` support (ensure it’s in your system PATH)
5455
- pyinstaller (only if a new executable is desired)
@@ -74,9 +75,10 @@ To create a standalone executable:
7475
```bash
7576
pip install pyinstaller
7677
```
77-
2. Use the following command to generate the executable:
78+
2. Use the following commands to generate the executable:
7879
```bash
79-
pyinstaller --noconfirm --noconsole --icon=file_renamer_icon.ico --add-data "file_renamer_icon.ico;." --hidden-import=pillow_heif --hidden-import=pytz.zoneinfo --exclude-module numpy --exclude-module mkl --exclude-module tcl --exclude-module tbb --exclude-module pywin32 --exclude-module psutil rename_files.py
80+
$piexif_path = python -c "import piexif; import os; print(os.path.dirname(piexif.__file__))"
81+
pyinstaller --clean --noconfirm --noconsole --icon=file_renamer_icon.ico --add-data "file_renamer_icon.ico;." --add-data "$piexif_path;piexif" --hidden-import=pillow_heif --hidden-import=pytz.zoneinfo --hidden-import=piexif --collect-all pillow_heif --collect-all piexif --exclude-module numpy --exclude-module mkl --exclude-module tcl --exclude-module tbb --exclude-module pywin32 --exclude-module psutil --log-level=DEBUG rename_files.py
8082
```
8183
3. The executable will be located in the `dist/` folder
8284

0 commit comments

Comments
 (0)