Created
October 22, 2018 17:16
-
-
Save iykex/eea3ed359c2bb3e38b4e7b317a53b467 to your computer and use it in GitHub Desktop.
Basically its for Compressed Android Rom source for slow internet/limited bandwidth devs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ROMNAME=lineage-14.1 | |
| LINK=https://github.com/LineageOS/android | |
| BRANCH=cm-14.1 | |
| THREAD_COUNT_SYNC=Number of your CPU Threads | |
| echo -e "# Installing necessary packages..." | |
| sudo apt install bc pxz wput | |
| echo -e "# Installed" | |
| echo -e "# Installing repo..." | |
| repo init -u $LINK -b $BRANCH --depth 1 -q | |
| echo -e "# Installed" | |
| echo -e "# Syncing..." | |
| repo sync -c -f -q --force-sync --no-clone-bundle --no-tags --optimized-fetch --prune -j$THREAD_COUNT_SYNC | |
| echo -e "# Synced" | |
| echo -e "# Starting Compression..." | |
| export XZ_OPT=-9e | |
| tar -I pxz -cf - * | split -b 4500M - $ROMNAME.tar.xz. | |
| echo -e "# Compressed" | |
| echo -e "# Uploading..." | |
| echo -e "# Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment