Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit ded865d

Browse files
committed
define LineageOS and AICP
1 parent 93f0817 commit ded865d

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

build.sh

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,18 @@ source build/envsetup.sh
5656
breakfast $device
5757

5858
# ディレクトリ名からツイート用のROM情報の設定をする
59-
if [ $builddir = cm13 ]; then
60-
source="CyanogenMod 13.0"
61-
short="CM13"
62-
zipname="cm-$(get_build_var CM_VERSION)"
63-
newzipname="cm-$(get_build_var PRODUCT_VERSION_MAJOR).$(get_build_var PRODUCT_VERSION_MINOR)-${filetime}-$(CM_BUILDTYPE)-$(get_build_var CM_BUILD)"
64-
65-
elif [ $builddir = rr ]; then
66-
vernum=$(get_build_var PRODUCT_VERSION)
67-
source="ResurrectionRemix v${vernum}"
68-
short="RR v${vernum}"
69-
zipname="$(get_build_var CM_VERSION)"
70-
newzipname="ResurrectionRemix-M-v$(get_build_var PRODUCT_VERSION)-${filetime}-$(get_build_var CM_BUILD)"
71-
59+
if [ $builddir = lineage ]; then
60+
vernum="$(get_build_var PRODUCT_VERSION_MAJOR).$(get_build_var PRODUCT_VERSION_MINOR)"
61+
source="LineageOS ${vernum}"
62+
short="${source}"
63+
zipname="lineage-$(get_build_var LINEAGE_VERSION)"
64+
newzipname="lineage-${vernum}-${filetime}-$(get_build_var CM_BUILDTYPE)-$(get_build_var CM_BUILD)"
65+
elif [ $builddir = aicp ]; then
66+
vernum="$(get_build_var AICP_BRANCH)-$(get_build_var VERSION)"
67+
source="AICP-${vernum}"
68+
short="${source}"
69+
zipname="$(get_build_var AICP_VERSION)"
70+
newzipname="aicp_${device}_${vernum}-$(get_build_var AICP_BUILDTYPE)-${filetime}"
7271
else
7372
# 一応対処するけど他ROMについては上記を参考にちゃんと書いてもらわないと後がめんどい
7473
source=$builddir

0 commit comments

Comments
 (0)