Przeglądaj źródła

Perform --appimage-extract if QEMU is specified.

Miku AuahDark 4 lat temu
rodzic
commit
7e2501ff3f
2 zmienionych plików z 10 dodań i 0 usunięć
  1. 2 0
      .gitignore
  2. 8 0
      Makefile

+ 2 - 0
.gitignore

@@ -1,3 +1,4 @@
+*.AppImage
 *.tar.bz2
 *.tar.gz
 LuaJIT-*/
@@ -19,4 +20,5 @@ libvorbis-*/
 love2d-master/
 mpg123-*/
 openal-soft-*/
+squashfs-root/
 zlib-*/

+ 8 - 0
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