mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[Ubuntu Touch] Strip OTA update code (#4962)
It distracts the developers. ;-)
This commit is contained in:
12
Makefile
12
Makefile
@@ -290,18 +290,6 @@ utupdate: all
|
||||
"koreader/resources/icons/src/*" "koreader/spec/*" \
|
||||
$(ZIP_EXCLUDE)
|
||||
|
||||
# generate update package index file
|
||||
zipinfo -1 koreader-$(DIST)-$(MACHINE)-$(VERSION).zip > \
|
||||
$(INSTALL_DIR)/koreader/ota/package.index
|
||||
echo "koreader/ota/package.index" >> $(INSTALL_DIR)/koreader/ota/package.index
|
||||
# update index file in zip package
|
||||
cd $(INSTALL_DIR) && zip -u ../koreader-$(DIST)-$(MACHINE)-$(VERSION).zip \
|
||||
koreader/ota/package.index
|
||||
# make gzip update for zsync OTA update
|
||||
cd $(INSTALL_DIR) && \
|
||||
tar -czah --no-recursion -f ../koreader-$(DIST)-$(MACHINE)-$(VERSION).targz \
|
||||
-T koreader/ota/package.index
|
||||
|
||||
# generate ubuntu touch click package
|
||||
rm -rf $(INSTALL_DIR)/tmp && mkdir -p $(INSTALL_DIR)/tmp
|
||||
cd $(INSTALL_DIR)/tmp && \
|
||||
|
||||
@@ -4,16 +4,6 @@ export LC_ALL="en_US.UTF-8"
|
||||
# working directory of koreader
|
||||
KOREADER_DIR="${0%/*}"
|
||||
|
||||
# update to new version from OTA directory
|
||||
NEWUPDATE="${KOREADER_DIR}/ota/koreader.updated.tar"
|
||||
INSTALLED="${KOREADER_DIR}/ota/koreader.installed.tar"
|
||||
if [ -f "${NEWUPDATE}" ]; then
|
||||
# TODO: any graphic indication for the updating progress?
|
||||
cd .. && "${KOREADER_DIR}/tar" xf "${NEWUPDATE}" --no-same-owner --no-same-permissions \
|
||||
&& mv "${NEWUPDATE}" "${INSTALLED}"
|
||||
rm -f "${NEWUPDATE}" # always purge newupdate in all cases to prevent update loop
|
||||
fi
|
||||
|
||||
# we're always starting from our working directory
|
||||
cd "${KOREADER_DIR}" || exit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user