From ad6607cb4c827f5e0a14a5933e6ac5dcbf22a271 Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Thu, 11 Apr 2024 20:07:09 +0000 Subject: [PATCH] make: improve `appimageupdate` rule, take 2 (#11671) The FUSE detection is false positive under Gitlab's pipeline, so just use the hidden `--appimage-extract-and-run` option to automatically and always "extract & run" the appimage tool. --- Makefile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 423298de6..23c4b0c17 100644 --- a/Makefile +++ b/Makefile @@ -70,9 +70,6 @@ WIN32_DIR=$(PLATFORM_DIR)/win32 APPIMAGETOOL=appimagetool-x86_64.AppImage APPIMAGETOOL_URL=https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-x86_64.AppImage -# Is fuse support available? -USE_FUSE ?= $(wildcard /dev/fuse) - # files to link from main directory INSTALL_FILES=reader.lua setupkoenv.lua frontend resources defaults.lua datastorage.lua \ l10n tools README.md COPYING @@ -341,11 +338,6 @@ ifeq ("$(wildcard $(APPIMAGETOOL))","") # download appimagetool wget "$(APPIMAGETOOL_URL)" chmod a+x "$(APPIMAGETOOL)" -endif -ifeq ($(USE_FUSE),) - # remove previously extracted appimagetool, if any - rm -rf squashfs-root - ./$(APPIMAGETOOL) --appimage-extract endif cd $(INSTALL_DIR) && pwd && \ rm -rf tmp && mkdir -p tmp && \ @@ -356,7 +348,7 @@ endif # generate AppImage cd $(INSTALL_DIR)/tmp && \ - ARCH=x86_64 ../../$(if $(USE_FUSE),$(APPIMAGETOOL),squashfs-root/AppRun) koreader && \ + ARCH=x86_64 "$$OLDPWD/$(APPIMAGETOOL)" --appimage-extract-and-run koreader && \ mv *.AppImage ../../koreader-$(DIST)-$(MACHINE)-$(VERSION).AppImage androidupdate: all