diff --git a/Makefile b/Makefile index 2eba93c0e..edfc21dc9 100644 --- a/Makefile +++ b/Makefile @@ -198,6 +198,7 @@ customupdate: all mkdir $(INSTALL_DIR)/data cp -rpL data/*.css $(INSTALL_DIR)/data cp -rp fonts $(INSTALL_DIR) + mkdir -p $(INSTALL_DIR)/fonts/host zip -r kindlepdfviewer-$(VERSION).zip $(INSTALL_DIR) launchpad/ rm -Rf $(INSTALL_DIR) @echo "copy kindlepdfviewer-$(VERSION).zip to /mnt/us/customupdates and install with shift+shift+I" diff --git a/launchpad/kpdf.sh b/launchpad/kpdf.sh index c1f42952e..a2b714b75 100755 --- a/launchpad/kpdf.sh +++ b/launchpad/kpdf.sh @@ -5,7 +5,12 @@ echo unlock > /proc/keypad echo unlock > /proc/fiveway cd /mnt/us/kindlepdfviewer/ + +grep /mnt/us/kindlepdfviewer/fonts/host /proc/mounts || mount -o bind /usr/java/lib/fonts /mnt/us/kindlepdfviewer/fonts/host + ./reader.lua "$1" 2> /mnt/us/kindlepdfviewer/crash.log +grep /mnt/us/kindlepdfviewer/fonts/host /proc/mounts && umount /mnt/us/kindlepdfviewer/fonts/host + killall -cont cvm echo 1 > /proc/eink_fb/update_display