English | 中文
This tool is designed to recursively search the current directory and all its subdirectories for .DS_Store
files and __MACOSX
directories and delete them. After the cleanup process, a dialog box will display which files and directories have been removed.
- Download or compile the generated
macosx_metadata_cleaner.exe
executable file. - Place the executable file inside the folder that needs to be cleaned.
- Just double-click the executable file and wait for the dialog box to show the list of deleted files.
- Python 3.6+
venv
virtual environmentpyinstaller
for packaging- UPX (optional, for reducing the size of the EXE file)
-
Create a virtual environment using
init_venv.bat
in this repository. -
(Optional) Add
upx.exe
to.\venv\Scripts\
to compress the executable file. -
Run
build.bat
to generate the executable file. N.B. Ifupx.exe
is not provided, please delete--upx-dir .\venv\Scripts\upx.exe
in thepyinstaller
command inbuild.bat
..\venv\Scripts\activate.bat && pyinstaller -Fw .\macosx_metadata_cleaner.py --upx-dir .\venv\Scripts\upx.exe -n macosx_metadata_cleaner
.\venv\Scripts\activate.bat && pyinstaller -Fw .\macosx_metadata_cleaner.py -n macosx_metadata_cleaner
This project is licensed under the MIT License - see the LICENSE file for details.