Perform --appimage-extract if QEMU is specified.

This commit is contained in:
Miku AuahDark
2021-07-18 13:48:39 +00:00
parent 29bd256df6
commit 7e2501ff3f
2 changed files with 10 additions and 0 deletions
+2
View File
@@ -1,3 +1,4 @@
*.AppImage
*.tar.bz2
*.tar.gz
LuaJIT-*/
@@ -19,4 +20,5 @@ libvorbis-*/
love2d-master/
mpg123-*/
openal-soft-*/
squashfs-root/
zlib-*/
+8
View File
@@ -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