Open probonopd opened 6 years ago
@Develar do you have any idea why newer AppImages apparently lack the magic bytes? Has anything in electron-builder
recently changed when it comes to how the AppImage is generated?
0x414901
at offset 80x414902
at offset 8electron-builder appends custom data to the end of file, but header of file is not modified (and original appimagetool is used to generate). I will investigate issue a little bit later.
Very likely related to https://github.com/AppImage/AppImageKit/issues/521
Most likely fixed in 031365d - turns out running strip on the runtime
had inadvertently removed the magic bytes. @develar please retry with the latest continuous build.
If your application is hit by this issue, the solution is easy: Please update electron-builder to the latest version so that the generated AppImage gets the correct magic bytes.
To verify, run xxd Some.AppImage | head -n 1
- it must show the AppImage type-2 magic bytes 0x414902
:
0000000: 7f45 4c46 0101 0100 4149 0200 0000 0000 .ELF....AI......
correct, whereas 0000000: 7f45 4c46 0101 0100 0000 0000 0000 0000 .ELF............
broken.Reference:
Magic number not detected.
This is blocking