🌿 A single header library (similar to stb) for zip,
compatible with gcc, tcc, llvm-mingw(clang), msvc.
Include the single header file either in src/stb_zip.h or build/stb_zip.h, for example
#define ZIP_IMPLEMENTATION
#ifndef ZIP_SHARED // if you want to build dll and export api
#include "std_zip.h"
prepare enviroment
git clone https://github.com/YuriSizuku/alter-ZipStb.git --recursive
cd alter-ZipStb
chmod +x script/*.sh script/*.py
export MINGWSDK=/path/to/llvmmingw && script/install_llvmmingw.shbuild stb_zip.h
mkdir build
python script/build_stb_zip.pybuild for debug
make prepare stbzip # build source
# build windows
make libzip libzip_test CC=i686-w64-mingw32-gcc BUILD_TYPE=32d
make libzip libzip_test CC=x86_64-w64-mingw32-gcc BUILD_TYPE=64d
# build linux
make libzip libzip_test CC=i686-linux-gnu-gcc BUILD_TYPE=32d
make libzip libzip_test CC=x86_64-linux-gnu-gcc BUILD_TYPE=64d