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

Commit f51614e

Browse files
committed
Add clean-ups to reduce drive space needed for full release build
1 parent ed5dc76 commit f51614e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.sh

+5
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,27 @@ cp patches.zip release/$rom_fp/patches.zip
5151
buildVariant treble_arm64_avN-userdebug arm64-aonly-vanilla-nosu
5252
buildVariant treble_arm64_agS-userdebug arm64-aonly-gapps-su
5353
#buildVariant treble_arm64_afS-userdebug arm64-aonly-floss-su
54+
rm -Rf out/target/product/phhgsi*
5455

5556
buildVariant treble_arm64_bvN-userdebug arm64-ab-vanilla-nosu
5657
buildVariant treble_arm64_bgS-userdebug arm64-ab-gapps-su
5758
#buildVariant treble_arm64_bfS-userdebug arm64-ab-floss-su
59+
rm -Rf out/target/product/phhgsi*
5860

5961
buildVariant treble_arm_avN-userdebug arm-aonly-vanilla-nosu
6062
[ "$1" != "android-9.0" ] && buildVariant treble_arm_aoS-userdebug arm-aonly-go-su
6163
buildVariant treble_arm_agS-userdebug arm-aonly-gapps-su
64+
rm -Rf out/target/product/phhgsi*
6265

6366
buildVariant treble_a64_avN-userdebug arm32_binder64-aonly-vanilla-nosu
6467
buildVariant treble_a64_agS-userdebug arm32_binder64-aonly-gapps-su
68+
rm -Rf out/target/product/phhgsi*
6569

6670
if [ "$1" = "android-9.0" ];then
6771
buildVariant treble_a64_bvN-userdebug arm32_binder64-ab-vanilla-nosu
6872
buildVariant treble_a64_bgS-userdebug arm32_binder64-ab-gapps-su
6973
fi
74+
rm -Rf out/target/product/phhgsi*
7075

7176
if [ "$release" == true ];then
7277
(

0 commit comments

Comments
 (0)