[Ubuntu Touch] Strip OTA update code (#4962)

It distracts the developers. ;-)
pull/4963/head
Frans de Jonge 5 years ago committed by GitHub
parent 7d742e156a
commit f38918a6f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save