Closed Samueru-sama closed 3 months ago
Does appimagetool or appimage_update_tool have the issue?
Does appimagetool or appimage_update_tool have the issue?
The issue is when trying to use appimageupdatetool on newly made appimages. It doesn't happen with appimages made more than 24 hours ago.
I checked and the last appimageupdatetool build is from a month ago anyway.
The same v1.70.16 and newer builds made in the original repo of the Brave appimage don't have the issue.
The only difference between the two is the appimagetool, the original was using the appimagetool from AppImageKit while mine is using this appimagetool, and given that the issue started recently it is likely one of the utilities that are not bundled in this appimagetool, very likely zsyncmake
Can you please compare the update information of the working and the non-working one by running both with --appimage-updateinformation
?
Can you please compare the update information of the working and the non-working one by running both with
--appimage-updateinformation
?
gh-releases-zsync|AppImage|AppImageUpdate|continuous|appimageupdatetool-*x86_64.AppImage.zsync
It is the same info in both. the one with .new
has the bug and the .old
doesn't have the bug.
I just noticed that yesterday there was a new runtime build maybe it is something in the runtime?
EDIT: I just noticed that the info I posted makes no sense and you likely wanted the update info the appimages themselves, it is being added.
gh-releases-zsync|Samueru-sama|Brave-AppImage|nightly|Brave*.AppImage.zsync
gh-releases-zsync|srevinsaju|Brave-AppImage|nightly|Brave*.AppImage.zsync
It is very likely something in the runtime.
I noticed that when I renamed the appimage to have the .new
in the name, the icon in Thunar broke. It is no longer being recognized as an appimage.
Notice this, one build is from two days ago, and the other is recent, I added .test
as the extension and the icon is broken in the recent build
In the end, the error appimageupdatetool was giving was what(): Unknown AppImage type or not an AppImage
so it makes sense when even Thunar doesn't recognize it as an appimage anymore.
The issue is with the last build of the runtime, it makes the appimage no longer be recognize as an appimage by other programs like appimageupdatetool.
I tested it quickly with the Htop appimage that I have, I extracted it and made two appimages.
One was using this appimagetool without any other change, it automatically picks the latest static runtime
The other one I used the same appimagetool with the --runtime-file ./runtime-fuse3-x86_64
from the stable release.
It fixed the issue, while neither htop appimage has update information, appimageupdatetool no longer errors out with what(): Unknown AppImage type or not an AppImage
Is it possible to transfer this issue to https://github.com/AppImage/type2-runtime ?
The magic bytes are not there for some reason. Only an A
is set, not AI\x02
.
To be fair, objcopy
is probably right here to eliminate the magic bytes. They're somewhat offending the ELF spec. We've known that for years. We need to change their location.
Thanks for fixing it asap @TheAssassin
Hello, I recently made this PR and everything at the Brave appimage repo updating to use this appimagetool.
I've noticed that when trying to use appimageupdatetool it is throwing an error, that's odd since when I made the changes it was working perfectly.
Thankfully the CI was setup to make builds several times a day, so I can check where the error started
Build v1.70.74 made 2 days ago is working fine
Build v1.70.75 made yesterday is working fine as well
Build v1.70.76 made yesterday and all builds after have the problem
The build log says that everything went fine
The issue is very likely upstream since appimagetool uses the CI zsync instead of bundling one, but I thought I would let you know anyway.