mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
added bind-mounting of host fonts
This commit is contained in:
1
Makefile
1
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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user