XiaomiFirmwareUpdater / xiaomi-flashable-firmware-creator

Xiaomi Flashable Firmware Creator
https://xiaomifirmwareupdater.com/projects/xiaomi-flashable-firmware-creator/
GNU General Public License v3.0
149 stars 45 forks source link

When making archive on Windows, the updater-script ends up with CRLF line endings which breaks installation. #58

Closed meganukebmp closed 2 years ago

meganukebmp commented 2 years ago

TWRP will fail installing the zip when Windows (CRLF) line endings are used.

From TWRP recovery.log:

line 1 col 29: syntax error, unexpected BAD

Which coincides with new line character in the updater-script. After running the updater-script through dos2unix, and rezipping everything works fine.