appimagetool fails because data/AM2R.AppDir/AM2R.desktop is not a valid desktop file.
Workaround: Replace it with AM2R.desktop from data/AM2R.AppDir/usr/share/applications/ which is a valid desktop file. Not sure if this is the intended content for that file, but at least the appimage builds.