Added installing "xz" if xz not exist. Updated to use curl, because wget is...

Added installing "xz" if xz not exist. Updated to use curl, because wget is not available on Google OnHub.
parent 2a989147
......@@ -47,6 +47,10 @@ case "$architecture" in
sha256s+=('94662756e545c73d76c37b2b83dd9852ebe71f4a17fc80d85db0fbaef72d4ca3')
;;
"armv7l")
if ! type "xz" > /dev/null; then
urls+=('https://github.com/snailium/chrome-cross/releases/download/v1.8.1/xz-5.2.3-chromeos-armv7l.tar.gz')
sha256s+=('4dc9f086ee7613ab0145ec0ed5ac804c80c620c92f515cb62bae8d3c508cbfe7')
fi
urls+=('https://github.com/jam7/chrome-cross/releases/download/v1.8/ruby-2.4.1-chromeos-armv7l.tar.xz')
sha256s+=('6c0ef23447d4591739dc00fa9b021a4d83291acbc37330e659d257efed474caf')
urls+=('https://github.com/jam7/chrome-cross/releases/download/v1.8/git-2.13.0-chromeos-armv7l.tar.xz')
......@@ -78,7 +82,7 @@ function download_check () {
#download
echo "Downloading $1..."
wget -c $2 -O $3
curl --ignore-content-length -# -L --ssl $2 -o "$3"
#verify
echo "Verifying $1..."
......@@ -156,15 +160,15 @@ done
#download, prepare and install chromebrew
cd $CREW_LIB_PATH
rm -rf crew lib packages
wget -N $URL/crew
curl -R $URL/crew
chmod +x crew
rm -f $CREW_PREFIX/bin/crew
ln -s `pwd`/crew $CREW_PREFIX/bin
#install crew library
mkdir -p $CREW_LIB_PATH/lib
cd $CREW_LIB_PATH/lib
wget -N $URL/lib/package.rb
wget -N $URL/lib/package_helpers.rb
curl -R $URL/lib/package.rb
curl -R $URL/lib/package_helpers.rb
#Making GCC act like CC (For some npm packages out there)
rm -f /usr/local/bin/cc
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment