mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Added script to build cef on windows
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@ -8,6 +8,11 @@ Common/3dParty/icu/win_32
|
||||
Common/3dParty/icu/linux_64
|
||||
Common/3dParty/icu/linux_32
|
||||
Common/3dParty/icu/mac_64
|
||||
Common/3dParty/cef/win_64
|
||||
Common/3dParty/cef/win_32
|
||||
Common/3dParty/cef/linux_64
|
||||
Common/3dParty/cef/linux_32
|
||||
Common/3dParty/cef/mac_64
|
||||
Common/3dParty/v8/v8
|
||||
Common/3dParty/v8/depot_tools
|
||||
Common/3dParty/v8/win_64
|
||||
|
||||
1
Common/3dParty/cef/build.bat
Normal file
1
Common/3dParty/cef/build.bat
Normal file
@ -0,0 +1 @@
|
||||
echo "build: OK!"
|
||||
32
Common/3dParty/cef/fetch.bat
Normal file
32
Common/3dParty/cef/fetch.bat
Normal file
@ -0,0 +1,32 @@
|
||||
SET SCRIPTPATH=%~dp0
|
||||
CD /D %~dp0
|
||||
SET PLATFORM=win
|
||||
SET ARCH=_32
|
||||
|
||||
if defined ProgramFiles(x86) (
|
||||
SET ARCH=_64
|
||||
)
|
||||
|
||||
mkdir "%SCRIPTPATH%%PLATFORM%%ARCH%"
|
||||
cd "%SCRIPTPATH%%PLATFORM%%ARCH%"
|
||||
|
||||
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/2454/%PLATFORM%%ARCH%/cef_binary.7z
|
||||
)
|
||||
|
||||
SET UNSIP_PROGRAMM="%ProgramFiles%\7-Zip\7z.exe"
|
||||
SET UNSIP_PROGRAMM2="%ProgramFiles(x86)%\7-Zip\7z.exe"
|
||||
if exist %UNSIP_PROGRAMM2% (
|
||||
SET UNSIP_PROGRAMM=%UNSIP_PROGRAMM2%
|
||||
)
|
||||
|
||||
if exist "cef_binary" (
|
||||
echo "cef_binary.7z already extracted"
|
||||
) else (
|
||||
call %UNSIP_PROGRAMM% x "cef_binary.7z"
|
||||
mkdir build
|
||||
copy cef_binary\Release\* build\
|
||||
copy cef_binary\Resources\* build\
|
||||
)
|
||||
Reference in New Issue
Block a user