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
704b3b70
Commit
704b3b70
authored
Dec 06, 2017
by
Alexey.Golubev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update cef if newer version exist
parent
e4674915
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
5 deletions
+63
-5
Common/3dParty/cef/download.ps1
Common/3dParty/cef/download.ps1
+62
-0
Common/3dParty/cef/fetch.bat
Common/3dParty/cef/fetch.bat
+1
-5
No files found.
Common/3dParty/cef/download.ps1
0 → 100644
View file @
704b3b70
Add-Type
-AssemblyName
System.IO.Compression.FileSystem
# ----------------------------------------------------------------------------------------------
# download a file
# ----------------------------------------------------------------------------------------------
function
Download-File
{
param
([
string
]
$url
,[
string
]
$file
)
$downloadRequired
=
$true
if
(
Test-Path
$file
)
{
$localModified
=
(
Get-Item
$file
)
.
LastWriteTime
$webRequest
=
[
System.Net.
HttpWebRequest
]::
Create
(
$url
)
$webRequest
.
Method
=
"HEAD"
$webResponse
=
$webRequest
.
GetResponse
()
$remoteLastModified
=
(
$webResponse
.
LastModified
)
-as
[
DateTime
]
$webResponse
.
Close
()
if
(
$remoteLastModified
-gt
$localModified
)
{
Write-Host
"
$file
is out of date"
}
else
{
$downloadRequired
=
$false
}
}
if
(
$downloadRequired
)
{
$clnt
=
new-object
System.Net.WebClient
Write-Host
"Downloading from
$url
to
$file
"
$clnt
.
DownloadFile
(
$url
,
$file
)
}
else
{
Write-Host
"
$file
is up to date."
}
return
$downloadRequired
}
# ----------------------------------------------------------------------------------------------
# unzip a file
# ----------------------------------------------------------------------------------------------
function
RemoveCef
{
param
([
string
]
$outpath
)
if
(
Test-Path
$outpath
)
{
Write-Host
"Remove folder
$outpath
"
Remove-Item
$outpath
-Force
-Recurse
}
}
$output
=
Download-File
-url
$args
[
0
]
-file
$args
[
1
]
if
(
$output
)
{
RemoveCef
-outpath
$args
[
2
]
}
\ No newline at end of file
Common/3dParty/cef/fetch.bat
View file @
704b3b70
...
...
@@ -12,11 +12,7 @@ if defined TARGET (
mkdir
"
%SCRIPTPATH%%
PLATFORM
%
"
cd
"
%SCRIPTPATH%%
PLATFORM
%
"
if
exist
"cef_binary.7z"
(
echo
"cef_binary.7z already downloaded"
)
else
(
Powershell
.exe
Invoke
-WebRequest -OutFile
cef_binary
.7z
http
://d2ettrnqo7v976.cloudfront.net/cef/3163/
%PLATFORM%
/cef
_binary.7z
)
Powershell
.exe
-executionpolicy
remotesigned
-file
%SCRIPTPATH%
download
.ps1
http
://d2ettrnqo7v976.cloudfront.net/cef/3163/
%PLATFORM%
/cef
_binary.7z
cef_binary
.7z
cef_binary
SET
UNSIP_PROGRAMM
=
"
%ProgramFiles%
\7-Zip\7z.exe"
SET
UNSIP_PROGRAMM2
=
"
%ProgramFiles
(x86)
%
\7-Zip\7z.exe"
...
...
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