Command-line tool to repair your file extensions
File signatures are from both Wikipedia as well as ftyps.com.
The tool only depends on the C Standard Libraries so it practically compiles anywhere, even on your phone!
magicfix /path/to/file.ext some.file.lol ../more/.dotfiles
This project is also designed to be used as a library. Just clone or submodule this repository into your include-Path. You should be able to access it with:
#include <magicfix/magicfix.h>
The full documentation is available in the Wiki.
This section is only about self-compilation. Check the Release Page for prebuilt binaries.
- Visual Studio 2022
- Desktop C++ Workflow
- Open Visual Studio and clone the repository:
https://github.com/Stridsvagn69420/magicfix.git
- Switch to Folder View in the Project Explorer
- Select
magicfix.exe
as the Start Element - (Optional) Choose your desired build target (
x64-Release
by default) - Build the Project with
Ctrl
+B
- The tool is located at
./out/build/{build-target}/magicfix.exe
cmake
make
gcc
orclang
git
- UCRT recommended (Windows only)
- Clone the repository:
git clone https://github.com/Stridsvagn69420/magicfix.git && cd magicfix
- Build the repository:
make
(Also define the env variableCC_NATIVE
to optimize for your CPU) - Install the program on your systen:
sudo make install
(Unix only)
Or use the Linux One Line Installer™️:
git clone https://github.com/Stridsvagn69420/magicfix.git && cd magicfix && make && sudo make install && make clean && cd .. && rm -rf magicfix