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
2fdffb8f
Commit
2fdffb8f
authored
Aug 04, 2017
by
Guannan Wang @ super-lollipop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated with proper curl command line options.
parent
daa16365
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
crew
crew
+2
-2
install.sh
install.sh
+4
-4
No files found.
crew
View file @
2fdffb8f
...
...
@@ -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
...
...
install.sh
View file @
2fdffb8f
...
...
@@ -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
...
...
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