Commit d06efaa4 authored by Kazushi (Jam) Marukawa's avatar Kazushi (Jam) Marukawa Committed by GitHub

Merge pull request #990 from snailium/master

Update to make chromebrew work on Google OnHub.
parents 61eff34f 38a1db22
...@@ -37,6 +37,14 @@ Then download and run the installation script below: ...@@ -37,6 +37,14 @@ Then download and run the installation script below:
wget -q -O - https://raw.github.com/skycocker/chromebrew/master/install.sh | bash wget -q -O - https://raw.github.com/skycocker/chromebrew/master/install.sh | bash
On a rooted Google OnHub, the command need to be run with "chronos" user. In order to make sudo work, a password is needed for chronos user.
passwd chronos
# Choose your password
su - chronos
curl -L https://raw.github.com/skycocker/chromebrew/master/install.sh | bash
# When prompt, use the password you just created for "chronos" user.
Usage Usage
----- -----
......
...@@ -407,7 +407,7 @@ def download ...@@ -407,7 +407,7 @@ def download
sha256sum = @pkg.binary_sha256[@device[:architecture]] sha256sum = @pkg.binary_sha256[@device[:architecture]]
end end
Dir.chdir CREW_BREW_DIR do Dir.chdir CREW_BREW_DIR do
system('wget', '--continue', '--no-check-certificate', url, '-O', filename) system('curl', '-C', '-', '--insecure', '-L', '-#', url, '-o', filename)
abort 'Checksum mismatch. :/ Try again.'.lightred unless abort 'Checksum mismatch. :/ Try again.'.lightred unless
Digest::SHA256.hexdigest( File.read("./#{filename}") ) == sha256sum Digest::SHA256.hexdigest( File.read("./#{filename}") ) == sha256sum
end end
......
...@@ -47,6 +47,10 @@ case "$architecture" in ...@@ -47,6 +47,10 @@ case "$architecture" in
sha256s+=('94662756e545c73d76c37b2b83dd9852ebe71f4a17fc80d85db0fbaef72d4ca3') sha256s+=('94662756e545c73d76c37b2b83dd9852ebe71f4a17fc80d85db0fbaef72d4ca3')
;; ;;
"armv7l") "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://dl.bintray.com/chromebrew/chromebrew-cross/ruby-2.4.1-chromeos-armv7l.tar.xz') urls+=('https://dl.bintray.com/chromebrew/chromebrew-cross/ruby-2.4.1-chromeos-armv7l.tar.xz')
sha256s+=('6c0ef23447d4591739dc00fa9b021a4d83291acbc37330e659d257efed474caf') sha256s+=('6c0ef23447d4591739dc00fa9b021a4d83291acbc37330e659d257efed474caf')
urls+=('https://dl.bintray.com/chromebrew/chromebrew-cross/git-2.13.0-chromeos-armv7l.tar.xz') urls+=('https://dl.bintray.com/chromebrew/chromebrew-cross/git-2.13.0-chromeos-armv7l.tar.xz')
...@@ -78,7 +82,7 @@ function download_check () { ...@@ -78,7 +82,7 @@ function download_check () {
#download #download
echo "Downloading $1..." echo "Downloading $1..."
wget -c $2 -O $3 curl -C - -# -L --ssl $2 -o "$3"
#verify #verify
echo "Verifying $1..." echo "Verifying $1..."
...@@ -156,15 +160,15 @@ done ...@@ -156,15 +160,15 @@ done
#download, prepare and install chromebrew #download, prepare and install chromebrew
cd $CREW_LIB_PATH cd $CREW_LIB_PATH
rm -rf crew lib packages rm -rf crew lib packages
wget -N $URL/crew curl -# -o crew $URL/crew
chmod +x crew chmod +x crew
rm -f $CREW_PREFIX/bin/crew rm -f $CREW_PREFIX/bin/crew
ln -s `pwd`/crew $CREW_PREFIX/bin ln -s `pwd`/crew $CREW_PREFIX/bin
#install crew library #install crew library
mkdir -p $CREW_LIB_PATH/lib mkdir -p $CREW_LIB_PATH/lib
cd $CREW_LIB_PATH/lib cd $CREW_LIB_PATH/lib
wget -N $URL/lib/package.rb curl -# -o package.rb $URL/lib/package.rb
wget -N $URL/lib/package_helpers.rb curl -# -o package_helpers.rb $URL/lib/package_helpers.rb
#Making GCC act like CC (For some npm packages out there) #Making GCC act like CC (For some npm packages out there)
rm -f /usr/local/bin/cc 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