Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrape latest zip from lineage mako page #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions devices/nexus4/android/lineageos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ then
echo "Downloading LineageOS 14.1.."
echo ""
sleep 1
wget -c --quiet --show-progress --tries=10 -P $HOME/.cache/magic-device-tool/ https://mirrorbits.lineageos.org/full/mako/20170831/lineage-14.1-20170831-nightly-mako-signed.zip
LOSLINK=$(wget -qO- https://download.lineageos.org/mako | sed -n 's/.*href="\([^"]*\.zip\).*/\1/p' | head -n1)
LOSZIP=${LOSLINK##*/}
wget -c --quiet --show-progress --tries=10 -P $HOME/.cache/magic-device-tool/ $LOSLINK
echo ""
echo "Downloading Open Gapps.."
echo ""
Expand Down Expand Up @@ -72,7 +74,8 @@ then
echo "Ignore that prompt, the tool will take care of the installation"
echo ""
echo " → LineageOS 14.1 zip "
adb push -p $HOME/.cache/magic-device-tool/lineage-14.1-20170831-nightly-mako-signed.zip /sdcard/
LOSPATH="$HOME/.cache/magic-device-tool/$LOSZIP"
adb push -p $LOSPATH /sdcard/
echo ""
echo " → open gapps zip"
adb push -p $HOME/.cache/magic-device-tool/open_gapps-arm-7.1-nano-20170603.zip /sdcard/
Expand All @@ -82,7 +85,8 @@ then
echo ""
echo "Installing LineageOS.."
echo ""
adb shell twrp install /sdcard/lineage-14.1-20170831-nightly-mako-signed.zip
INSTALLPATH="/sdcard/$LOSZIP"
adb shell twrp install $INSTALLPATH
sleep 1
echo ""
echo "Installing Open GApps.."
Expand Down