Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
d06efaa4
Commit
d06efaa4
authored
Aug 30, 2017
by
Kazushi (Jam) Marukawa
Committed by
GitHub
Aug 30, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #990 from snailium/master
Update to make chromebrew work on Google OnHub.
parents
61eff34f
38a1db22
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
README.md
README.md
+8
-0
crew
crew
+1
-1
install.sh
install.sh
+8
-4
No files found.
README.md
View file @
d06efaa4
...
...
@@ -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
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
-----
...
...
crew
View file @
d06efaa4
...
...
@@ -407,7 +407,7 @@ def download
sha256sum
=
@
pkg
.
binary_sha256
[@
device
[:
architecture
]]
end
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
Digest
::
SHA256
.
hexdigest
(
File
.
read
(
"./#{filename}"
)
)
==
sha256sum
end
...
...
install.sh
View file @
d06efaa4
...
...
@@ -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://dl.bintray.com/chromebrew/chromebrew-cross/ruby-2.4.1-chromeos-armv7l.tar.xz'
)
sha256s+
=(
'6c0ef23447d4591739dc00fa9b021a4d83291acbc37330e659d257efed474caf'
)
urls+
=(
'https://dl.bintray.com/chromebrew/chromebrew-cross/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
-C
- -#
-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 -#
-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
wget
-N
$URL
/lib/package.rb
wget
-N
$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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment