mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[Android] Makefile: only use VERSION, not REVISION (#3811)
Fixes always reinstalling resource package. See https://github.com/koreader/koreader/pull/3723#issuecomment-376508917
This commit is contained in:
3
Makefile
3
Makefile
@@ -8,7 +8,6 @@ KOR_BASE?=base
|
||||
# we want VERSION to carry the version of koreader, not koreader-base
|
||||
VERSION:=$(shell git describe HEAD)
|
||||
VERSION:=$(VERSION)_$(shell git describe HEAD | xargs git show -s --format=format:"%cd" --date=short)
|
||||
REVISION=$(shell git rev-parse --short HEAD)
|
||||
|
||||
# set PATH to find CC in managed toolchains
|
||||
ifeq ($(TARGET), android)
|
||||
@@ -320,7 +319,7 @@ androidupdate: all
|
||||
-T ota/package.index --no-recursion
|
||||
# make android update apk
|
||||
cd $(INSTALL_DIR)/koreader && 7z a -l -mx=1 \
|
||||
../../$(ANDROID_LAUNCHER_DIR)/assets/module/koreader-g$(REVISION).7z * \
|
||||
../../$(ANDROID_LAUNCHER_DIR)/assets/module/koreader-$(VERSION).7z * \
|
||||
-x!resources/fonts -x!resources/icons/src -x!spec
|
||||
$(MAKE) -C $(ANDROID_LAUNCHER_DIR) apk
|
||||
cp $(ANDROID_LAUNCHER_DIR)/bin/NativeActivity-debug.apk \
|
||||
|
||||
Submodule platform/android/luajit-launcher updated: 52a76c19e5...132b24664a
Reference in New Issue
Block a user