Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
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
Boris Kocherov
onlyoffice_core
Commits
fb0dbfc2
Commit
fb0dbfc2
authored
Dec 06, 2017
by
Alexey Golubev
Committed by
Alexey.Golubev
Dec 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cherrypick from develop
parent
ede03faf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
15 deletions
+31
-15
Common/3dParty/cef/fetch.sh
Common/3dParty/cef/fetch.sh
+31
-15
No files found.
Common/3dParty/cef/fetch.sh
View file @
fb0dbfc2
...
...
@@ -8,7 +8,7 @@ platform=""
case
"
$os
"
in
Linux
*
)
platform
=
"linux"
;;
Darwin
*
)
platform
=
"mac"
;;
Darwin
*
)
platform
=
"mac"
;;
*
)
exit
;;
esac
...
...
@@ -35,22 +35,38 @@ echo ""
else
mkdir
"build"
fi
cef_binary
=
cef_binary
cef_arch
=
$cef_binary
.7z
cef_url
=
http://d2ettrnqo7v976.cloudfront.net/cef/3163/
$platform$arch
/
$cef_arch
if
[[
"
$platform
"
==
*
"linux"
*
]]
then
if
[[
-f
"cef_binary.7z"
]]
then
echo
"cef_binary already downloaded"
else
wget http://d2ettrnqo7v976.cloudfront.net/cef/2454/
$platform$arch
/cef_binary.7z
fi
if
[
-d
cef_binary
]
then
echo
"cef_binary already extracted"
else
7z x
-y
cef_binary.7z
fi
cp
-r
-t
build/ ./cef_binary/Release/
*
./cef_binary/Resources/
*
chmod
a+xr build/locales
if
[[
-f
$cef_arch
]]
then
cef_mod_time
=
$(
date
-d
"
$(
curl
-sI
$cef_url
|
awk
'/Last-Modified/ {print ($3, $4, $5, $6, $7, $8)}'
)
"
+
"%s"
)
local_mod_time
=
$(
stat
-c
%Y
$cef_arch
)
echo
$cef_mod_time
echo
$local_mod_time
if
[[
$cef_mod_time
-eq
$local_mod_time
]]
then
echo
"cef_binary already downloaded"
else
wget
$cef_url
-O
$cef_arch
rm
-fr
$cef_binary
/
fi
else
wget
$cef_url
rm
-fr
$cef_binary
/
fi
if
[
-d
$cef_binary
]
then
echo
"cef_binary already extracted"
else
7z x
-y
$cef_arch
fi
cp
-r
-t
build/ ./
$cef_binary
/Release/
*
./
$cef_binary
/Resources/
*
chmod
a+xr build/locales
fi
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