From 4a23f05cc0dacae9d03692c81079707d69c9cf57 Mon Sep 17 00:00:00 2001 From: chrox Date: Thu, 22 Jan 2015 00:12:55 +0800 Subject: [PATCH] don't update extensions.cfg in OTA since users may have mantained their own extensions.cfg file The extensions.cfg file is still in the release package and users could manually copy the `system` directory to the USB root if they want Koreader to handle all their documents. --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 2316b7a5c..55f7f669b 100644 --- a/Makefile +++ b/Makefile @@ -203,7 +203,7 @@ pbupdate: all cd $(INSTALL_DIR) && \ zip -9 -r \ ../koreader-pocketbook-$(MACHINE)-$(VERSION).zip \ - applications system -x "applications/koreader/resources/fonts/*" \ + applications -x "applications/koreader/resources/fonts/*" \ "applications/koreader/resources/icons/src/*" "applications/koreader/spec/*" # generate koboupdate package index file zipinfo -1 koreader-pocketbook-$(MACHINE)-$(VERSION).zip > \ @@ -214,12 +214,12 @@ pbupdate: all sed -i -e 's/^/..\//' \ $(INSTALL_DIR)/applications/koreader/ota/package.index # update index file in zip package - cd $(INSTALL_DIR) && zip -u ../koreader-pocketbook-$(MACHINE)-$(VERSION).zip \ - applications/koreader/ota/package.index + cd $(INSTALL_DIR) && zip -ru ../koreader-pocketbook-$(MACHINE)-$(VERSION).zip \ + applications/koreader/ota/package.index system # make gzip pbupdate for zsync OTA update - cd $(INSTALL_DIR) && \ - tar czafh ../koreader-pocketbook-$(MACHINE)-$(VERSION).tar.gz \ - -T applications/koreader/ota/package.index --no-recursion + cd $(INSTALL_DIR)/applications && \ + tar czafh ../../koreader-pocketbook-$(MACHINE)-$(VERSION).tar.gz \ + -T koreader/ota/package.index --no-recursion androidupdate: all mkdir -p $(ANDROID_LAUNCHER_DIR)/assets/module