Switching from single-file butler push to multi-file pushing seems to cause issues
See original GitHub issueSo far I have been pushing a single AppImage of Tiled on my linux-64bit-snapshot
channel. This evening, I tried pushing the AppDir instead, so simply the directory containing all the files. I tried this because I thought it could reduce patch size and it would make the other executables shipping with Tiled more readily available.
But pushing the AppDir did something really strange on itch.io, where downloading the snapshot would produce a file called “Tiled-2017.06.27-x86_64.AppImage” (the name of the previous snapshot) but the contents was a ZIP of the new snapshot.
Unfortunately I couldn’t test what the itch.io app would have done, because it appeared to be having networking issues (downloads weren’t starting). In the meantime, I have pushed a single-file update again, which seems to be working fine.
In case it helps, the “wrong” version is the first “2017.07.11” in the build history.
Issue Analytics
- State:
- Created 6 years ago
- Comments:15
Top GitHub Comments
@GranPC Thank you so much! I’m currently on holiday but I’ll definitely give this a try next week!
I believe the issue started 30 days ago, when the first
Tiled.dmg
was pushed to themacos
channel.The
single file
feature backfired, and set the filename toTiled.dmg
, even for the app - which always gets a .zip, no matter what’s pushed (single file or multiple files) - so the app downloads to a file namedTiled.dmg
, then goes trying to figure out what format it is. For dmg in particular, magic numbers aren’t enough - some .dmg files are actually bz2 compressed, and those cannot be identifier viat their four first bytes - so the app uses the file extension to guess that particular format instead.Guessing that it’s a .dmg, it does its normal routine (trying to convert it to cdr, mount it, copy files out of it, unmounting it) - but it fails at conversion time because it’s not a .dmg, it’s a .zip.
The fix is to make the backend use a different field for the “single filename” so that the itch app doesn’t pick it up. (/cc @granpc - remember I felt uncomfortable overwriting the
filename
column? 😉)That explains both comments and the trouble you’re having now (even though you switched back to pushing the .app, the
filename
set when you first pushed a single file is still there). We’ll fix it ASAP.