makelove icon indicating copy to clipboard operation
makelove copied to clipboard

11.5 AppImages don't work

Open tinydanbo opened this issue 1 year ago • 4 comments

Generating AppImages for LOVE 11.5 doesn't work.

The reason for this appears to be that makelove fuses the .love file to the bin/love binary and renames it to bin/{game_name}, like so: https://github.com/pfirsich/makelove/blob/f192818e9845683d55dbf40e0415e1cf978524e9/makelove/linux.py#L167

However, the AppRun script inside 11.5 appimages is specifically looking for bin/love : https://github.com/love2d/love-appimage-source/blob/a945d735c61c82214f1fa4b803d2cae19432ba22/love.sh#L30

So running a built 11.5 appimage simply results in a "bin/love: No such file or directory" error.

tinydanbo avatar Feb 16 '24 06:02 tinydanbo

There are certain ways to fuse with 11.5 AppImage (for maintainers):

  1. Fuse as you'd do in Windows. Note that you have to change the executable target from bin/love to bin/yourgame.
  2. Put your yourgame.love in share folder (or extract it in share/yourgame directory) then uncomment and change the FUSE_PATH variable to $APPDIR/share/yourgame.love or $APPDIR/share/yourgame.

As for the original AppRun script itself, I think it can be improved by reading the Exec= in the .desktop file. Patches welcome.

I was responsible of managing the AppImage build script and the AppRun was changed inbetween 11.4 and 11.5 from C program to simple shell script. Sorry for the inconvenience.

MikuAuahDark avatar Feb 18 '24 01:02 MikuAuahDark

@MikuAuahDark thanks! I did point 1 and that was enough to solve the issue.

gustavostuff avatar Mar 05 '24 20:03 gustavostuff

Hello and thank you for your work on this.

I bumped onto this issue too and while I'm at it, I tried to see if I could patch it.

I'm pretty sure my approach is not good but with some guidance I think it would be nice to fix that.

kongeor avatar Jun 08 '24 16:06 kongeor