add lftp apt request
This commit is contained in:
parent
4c36f34f7c
commit
ac0caa733c
@ -5,6 +5,7 @@ NC='\033[0m' # No Color
|
||||
|
||||
#sudo apt-get install python
|
||||
#sudo apt-get install wiggle
|
||||
sudo apt-get install lftp
|
||||
|
||||
echo -e ${RED} -------- download bromite repo ${NC}
|
||||
git clone https://github.com/bromite/bromite
|
||||
@ -26,7 +27,12 @@ cd ..
|
||||
|
||||
echo -e ${RED} -------- set envs ${NC}
|
||||
PATH=$PWD/chromium/src/third_party/llvm-build/Release+Asserts/bin:$PWD/depot_tools/:/usr/local/go/bin:$PATH
|
||||
env
|
||||
|
||||
echo -e ${RED} -------- cheking chromium pre-prepared ${NC}
|
||||
rm chromium.$VERSION_SHA.tar.gz
|
||||
lftp $FTP_HOST -u $FTP_USER,$FTP_PWD -e "set ftp:ssl-force true; set ssl:verify-certificate false; cd /bromite; get chromium.$VERSION_SHA.tar.gz; quit" && OK=1 || OK=0
|
||||
if [[ OK -eq 0 ]]; then
|
||||
echo -e ${RED} -------- not found ${NC}
|
||||
|
||||
echo -e ${RED} -------- download chromium repo ${NC}
|
||||
mkdir ./chromium
|
||||
@ -69,8 +75,10 @@ git config user.name "Your Name"
|
||||
# remove origin for chromium
|
||||
# git remote remove origin
|
||||
|
||||
echo -e ${RED} -------- running hooks ${NC}
|
||||
echo -e ${RED} -------- running install-build-deps-android ${NC}
|
||||
sudo build/install-build-deps-android.sh
|
||||
|
||||
echo -e ${RED} -------- running hooks ${NC}
|
||||
gclient runhooks
|
||||
|
||||
echo -e ${RED} -------- packing chromium dir ${NC}
|
||||
@ -79,5 +87,11 @@ tar -czf chromium.$VERSION_SHA.tar.gz ./chromium
|
||||
|
||||
echo -e ${RED} -------- uploading to storage ${NC}
|
||||
lftp $FTP_HOST -u $FTP_USER,$FTP_PWD -e "set ftp:ssl-force true; set ssl:verify-certificate false; cd /bromite; put chromium.$VERSION_SHA.tar.gz; quit"
|
||||
rm chromium.$VERSION_SHA.tar.gz
|
||||
else
|
||||
echo -e ${RED} -------- unpacking ${NC}
|
||||
|
||||
tar xf chromium.$VERSION_SHA.tar.gz
|
||||
fi
|
||||
|
||||
rm chromium.$VERSION_SHA.tar.gz
|
||||
cd chromium/src
|
||||
|
Loading…
Reference in New Issue
Block a user