diff --git a/.gitignore b/.gitignore index cbff0d0..097846e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +*.AppImage *.tar.bz2 *.tar.gz LuaJIT-*/ @@ -19,4 +20,5 @@ libvorbis-*/ love2d-master/ mpg123-*/ openal-soft-*/ +squashfs-root/ zlib-*/ diff --git a/Makefile b/Makefile index dae318e..e57ae53 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,10 @@ cmake: $(CMAKE) appimagetool: curl -Lo appimagetool https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-$(ARCH).AppImage chmod u+x appimagetool +ifneq ($(QEMU),) +# Extract the AppImageTool + $(QEMU) ./appimagetool --appimage-extract +endif # SDL2 override SDL2_PATH := SDL2-$(SDL2_BRANCH) @@ -357,7 +361,11 @@ $(APPIMAGE_OUTPUT): installdir/AppRun installdir/love.desktop installdir/love.sv -find installdir2/bin -type l -exec rm -rf {} + -find installdir2/bin ! -name 'luajit*' ! -name 'love' -type f -exec rm -f {} + -strip installdir2/lib/* +ifeq ($(QEMU),) ./appimagetool installdir2 love-master.AppImage +else + cd squashfs-root/usr/lib && ../../AppRun ../../../installdir2 ../../../love-master.AppImage +endif rm -rf installdir2 getdeps: $(CMAKE) appimagetool $(SDL2_PATH)/configure $(LIBOGG_FILE).tar.gz $(LIBVORBIS_FILE).tar.gz $(LIBTHEORA_FILE).tar.gz $(ZLIB_PATH)/configure $(LIBPNG_FILE).tar.gz $(BROTLI_PATH)/CMakeLists.txt $(BZIP2_FILE).tar.gz $(FT_FILE).tar.gz $(MPG123_FILE).tar.bz2 $(LIBMODPLUG_FILE).tar.gz $(LUAJIT_PATH)/Makefile $(LOVE_PATH)/CMakeLists.txt