You can easily create flashable firmware zip from Recovery MIUI.
chmod +x create_flashable_firmware.sh
./create_flashable_firmware.sh [MIUI ZIP] [OUTPUT DIR (optional)]
Xiaomi Flashable Firmware Creator
You can easily create flashable firmware zip from Recovery MIUI.
chmod +x create_flashable_firmware.sh
./create_flashable_firmware.sh [MIUI ZIP] [OUTPUT DIR (optional)]
Xiaomi Flashable Firmware Creator