mirror of
https://github.com/love2d/love-appimage-source.git
synced 2026-08-12 08:40:51 +02:00
Perform --appimage-extract if QEMU is specified.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
*.AppImage
|
||||
*.tar.bz2
|
||||
*.tar.gz
|
||||
LuaJIT-*/
|
||||
@@ -19,4 +20,5 @@ libvorbis-*/
|
||||
love2d-master/
|
||||
mpg123-*/
|
||||
openal-soft-*/
|
||||
squashfs-root/
|
||||
zlib-*/
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user