diff --git a/Makefile b/Makefile index 0b2e09b41..5d9771fc5 100644 --- a/Makefile +++ b/Makefile @@ -127,8 +127,19 @@ $(LUALIB): thirdparty: $(MUPDFLIBS) $(THIRDPARTYLIBS) $(LUALIBS) +INSTALL_DIR=kindlepdfviewer + install: # install to kindle using USB networking - scp kpdfview *.lua root@192.168.2.2:/mnt/us/test/ + scp kpdfview *.lua root@192.168.2.2:/mnt/us/$(INSTALL_DIR)/ scp launchpad/* root@192.168.2.2:/mnt/us/launchpad/ +VERSION?=$(shell git rev-parse --short HEAD) +customupdate: kpdfview + # ensure that build binary is for ARM + file kpdfview | grep ARM || exit 1 + mkdir $(INSTALL_DIR) + cp -p README.TXT COPYING kpdfview *.lua $(INSTALL_DIR) + 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 d2b94d902..e89a329fd 100755 --- a/launchpad/kpdf.sh +++ b/launchpad/kpdf.sh @@ -1,6 +1,6 @@ #!/bin/sh echo unlock > /proc/keypad echo unlock > /proc/fiveway -cd /mnt/us/test/ +cd /mnt/us/kindlepdfviewer/ ./reader.lua /mnt/us/documents echo 1 > /proc/eink_fb/update_display