Updated with proper curl command line options.

parent daa16365
......@@ -10,7 +10,7 @@ require 'fileutils'
@pkgName = ARGV[1]
ARCH = `uname -m`.strip
ARCH_LIB = if ARCH == 'x86_64' then 'lib64' else 'lib' end
ARCH_LIB = if ARCH == 'x86_64' or ARCH == 'aarch64' then 'lib64' else 'lib' end
CREW_PREFIX = '/usr/local'
CREW_LIB_PREFIX = CREW_PREFIX + '/' + ARCH_LIB
......@@ -370,7 +370,7 @@ def download
sha256sum = @pkg.binary_sha256[@device[:architecture]]
end
Dir.chdir CREW_BREW_DIR do
system('curl', '--insecure', '-L', '-#', url, '-o', filename)
system('curl', '-C', '-', '--insecure', '-L', '-#', url, '-o', filename)
abort 'Checksum mismatch. :/ Try again.'.lightred unless
Digest::SHA256.hexdigest( File.read("./#{filename}") ) == sha256sum
end
......
......@@ -82,7 +82,7 @@ function download_check () {
#download
echo "Downloading $1..."
curl --ignore-content-length -# -L --ssl $2 -o "$3"
curl -C - -# -L --ssl $2 -o "$3"
#verify
echo "Verifying $1..."
......@@ -160,15 +160,15 @@ done
#download, prepare and install chromebrew
cd $CREW_LIB_PATH
rm -rf crew lib packages
curl -R $URL/crew
curl -# -o crew $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
curl -R $URL/lib/package.rb
curl -R $URL/lib/package_helpers.rb
curl -# -o package.rb $URL/lib/package.rb
curl -# -o package_helpers.rb $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