addonsu: Add Lineage version to zip name
* Avoid confusion
Change-Id: I823d77e037b0d0dc2a4b9f0466d594213c72e179
diff --git a/build/tasks/addonsu.mk b/build/tasks/addonsu.mk
index ff82e53..6979586 100644
--- a/build/tasks/addonsu.mk
+++ b/build/tasks/addonsu.mk
@@ -1,7 +1,7 @@
ADDONSU_PREBUILTS_PATH := vendor/cm/addonsu/
ADDONSU_INSTALL_OUT := $(PRODUCT_OUT)/addonsu-install/
-ADDONSU_INSTALL_TARGET := $(PRODUCT_OUT)/addonsu-$(TARGET_ARCH).zip
+ADDONSU_INSTALL_TARGET := $(PRODUCT_OUT)/addonsu-$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_ARCH).zip
$(ADDONSU_INSTALL_TARGET): $(ALL_MODULES.updater.BUILT) \
$(ALL_MODULES.su.BUILT) $(ALL_MODULES.su.PATH)/superuser.rc
@@ -24,7 +24,7 @@
ADDONSU_REMOVE_OUT := $(PRODUCT_OUT)/addonsu-remove/
-ADDONSU_REMOVE_TARGET := $(PRODUCT_OUT)/addonsu-remove-$(TARGET_ARCH).zip
+ADDONSU_REMOVE_TARGET := $(PRODUCT_OUT)/addonsu-remove-$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_ARCH).zip
$(ADDONSU_REMOVE_TARGET): $(ALL_MODULES.updater.BUILT)
$(hide) rm -rf $@ $(ADDONSU_REMOVE_OUT)