mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
create customupdate package for launchpad installation
This change also modifies installation directory for install and customupdate make targets to /mnt/us/kindlepdfviewer
This commit is contained in:
13
Makefile
13
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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user