|
|
|
@ -346,11 +346,24 @@ androidupdate: all
|
|
|
|
|
-rm $(ANDROID_LAUNCHER_DIR)/assets/module/koreader-*
|
|
|
|
|
# in runtime luajit-launcher's libluajit.so will be loaded
|
|
|
|
|
-rm $(INSTALL_DIR)/koreader/libs/libluajit.so
|
|
|
|
|
# make android update apk
|
|
|
|
|
cd $(INSTALL_DIR)/koreader && 7z a -l -m0=lzma2 -mx=1 \
|
|
|
|
|
../../$(ANDROID_LAUNCHER_DIR)/assets/module/koreader-$(VERSION).7z * \
|
|
|
|
|
-x!resources/fonts -x!resources/icons/src -x!spec
|
|
|
|
|
$(MAKE) -C $(ANDROID_LAUNCHER_DIR) $(if $(KODEBUG), debug, release) ANDROID_APPNAME=KOReader ANDROID_VERSION=$(ANDROID_VERSION) ANDROID_NAME=$(ANDROID_NAME) ANDROID_FLAVOR=$(ANDROID_FLAVOR)
|
|
|
|
|
|
|
|
|
|
# assets are compressed manually and stored inside the APK.
|
|
|
|
|
cd $(INSTALL_DIR)/koreader && zip -r9 \
|
|
|
|
|
../../$(ANDROID_LAUNCHER_DIR)/assets/module/koreader-$(VERSION).zip * \
|
|
|
|
|
--exclude=*resources/fonts* \
|
|
|
|
|
--exclude=*resources/icons/src* \
|
|
|
|
|
--exclude=*share/man* \
|
|
|
|
|
--exclude=*spec* \
|
|
|
|
|
--exclude=*COPYING* \
|
|
|
|
|
--exclude=*README.md*
|
|
|
|
|
|
|
|
|
|
# make the android APK
|
|
|
|
|
$(MAKE) -C $(ANDROID_LAUNCHER_DIR) $(if $(KODEBUG), debug, release) \
|
|
|
|
|
ANDROID_APPNAME=KOReader \
|
|
|
|
|
ANDROID_VERSION=$(ANDROID_VERSION) \
|
|
|
|
|
ANDROID_NAME=$(ANDROID_NAME) \
|
|
|
|
|
ANDROID_FLAVOR=$(ANDROID_FLAVOR)
|
|
|
|
|
|
|
|
|
|
cp $(ANDROID_LAUNCHER_DIR)/bin/NativeActivity.apk \
|
|
|
|
|
koreader-android-$(ANDROID_ARCH)$(KODEDUG_SUFFIX)-$(VERSION).apk
|
|
|
|
|
|
|
|
|
|