Skip to content

Commit

Permalink
Auto install repo
Browse files Browse the repository at this point in the history
Signed-off-by: xiaoleGun <[email protected]>
  • Loading branch information
xiaoleGun committed May 12, 2023
1 parent efd3575 commit 015db4c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ autoInstallDependencies() {
else
echo "$password" | sudo -S apt-get update
echo "$password" | sudo -S apt-get install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev xattr openjdk-11-jdk jq android-sdk-libsparse-utils python3 python

if [ ! -f /bin/repo -a -c `repo &>/dev/null` ];then
mkdir -p ~/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
echo "$password" | sudo -S cp ~/bin/repo /bin/repo
echo "$password" | sudo -S chmod a+x /bin/repo
fi
fi
fi
}
Expand Down

0 comments on commit 015db4c

Please sign in to comment.